未验证 提交 9baa3b25 编写于 作者: Z Zachary Anderson 提交者: GitHub

Fix Fuchsia build errors (#4508)

上级 368380cf
......@@ -41,7 +41,8 @@ void PhysicalModelLayer::Preroll(PrerollContext* context,
void PhysicalModelLayer::UpdateScene(SceneUpdateContext& context) {
FXL_DCHECK(needs_system_composite());
SceneUpdateContext::Frame frame(context, rrect_, color_, elevation_);
SceneUpdateContext::Frame frame(context, shape_->getFrameRRect(), color_,
elevation_);
for (auto& layer : layers()) {
if (layer->needs_painting()) {
frame.AddPaintedLayer(layer.get());
......
......@@ -53,6 +53,7 @@ class PhysicalModelLayer : public ContainerLayer {
// TODO(amirh): remove this once Scenic supports arbitrary shaped layers.
class PhysicalLayerShape {
public:
virtual ~PhysicalLayerShape() = default;
virtual const SkRect& getBounds() const = 0;
virtual SkPath getPath() const = 0;
virtual void clipCanvas(SkCanvas& canvas) const = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册