Skip to content

Commit

Permalink
Fix Fuchsia build errors (flutter#4508)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Jan 3, 2018
1 parent 368380c commit 9baa3b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/layers/physical_model_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
1 change: 1 addition & 0 deletions flow/layers/physical_model_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9baa3b2

Please sign in to comment.