Skip to content

Commit

Permalink
[fuchsia] Plumb root_surface_transformation in scene_update_context (f…
Browse files Browse the repository at this point in the history
…lutter#6187)

* [fuchsia] Plumb root_surface_transformation in scene_update_context

To fix the Fuchsia build.

* Update scene_update_context.cc
  • Loading branch information
zanderso authored Sep 6, 2018
1 parent 30c8da8 commit bd7593b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flow/scene_update_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,12 @@ SceneUpdateContext::ExecutePaintTasks(CompositorContext::ScopedFrame& frame) {
for (auto& task : paint_tasks_) {
FML_DCHECK(task.surface);
SkCanvas* canvas = task.surface->GetSkiaSurface()->getCanvas();
Layer::PaintContext context = {*canvas, frame.context().frame_time(),
Layer::PaintContext context = {*canvas,
frame.root_surface_transformation(),
frame.context().frame_time(),
frame.context().engine_time(),
frame.context().texture_registry(), false};
frame.context().texture_registry(),
false};
canvas->restoreToCount(1);
canvas->save();
canvas->clear(task.background_color);
Expand Down

0 comments on commit bd7593b

Please sign in to comment.