From ea32eeb822cc9df440dde2763c55a3c4034ab250 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Thu, 6 Sep 2018 12:35:12 -0700 Subject: [PATCH] [fuchsia] Plumb root_surface_transformation in scene_update_context (flutter/engine#6187) * [fuchsia] Plumb root_surface_transformation in scene_update_context To fix the Fuchsia build. * Update scene_update_context.cc --- engine/src/flutter/flow/scene_update_context.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 576bde7fa1..1da575bf56 100644 --- a/engine/src/flutter/flow/scene_update_context.cc +++ b/engine/src/flutter/flow/scene_update_context.cc @@ -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);