@@ -32,7 +32,7 @@ void LayerTree::Preroll(CompositorContext::ScopedFrame& frame,
3232 SkRect::MakeEmpty (),
3333 };
3434
35- root_layer_->Preroll (&context, SkMatrix::I ());
35+ root_layer_->Preroll (&context, frame. root_surface_transformation ());
3636}
3737
3838#if defined(OS_FUCHSIA)
@@ -64,7 +64,6 @@ void LayerTree::Paint(CompositorContext::ScopedFrame& frame) const {
6464 TRACE_EVENT0 (" flutter" , " LayerTree::Paint" );
6565 Layer::PaintContext context = {
6666 *frame.canvas (), //
67- frame.root_surface_transformation (), //
6867 frame.context ().frame_time (), //
6968 frame.context ().engine_time (), //
7069 frame.context ().texture_registry (), //
@@ -100,7 +99,6 @@ sk_sp<SkPicture> LayerTree::Flatten(const SkRect& bounds) {
10099
101100 Layer::PaintContext paint_context = {
102101 *canvas, // canvas
103- root_surface_transformation, // root surface transformation
104102 unused_stopwatch, // frame time (dont care)
105103 unused_stopwatch, // engine time (dont care)
106104 unused_texture_registry, // texture registry (not supported)
@@ -110,7 +108,7 @@ sk_sp<SkPicture> LayerTree::Flatten(const SkRect& bounds) {
110108 // Even if we don't have a root layer, we still need to create an empty
111109 // picture.
112110 if (root_layer_) {
113- root_layer_->Preroll (&preroll_context, SkMatrix::I () );
111+ root_layer_->Preroll (&preroll_context, root_surface_transformation );
114112 // The needs painting flag may be set after the preroll. So check it after.
115113 if (root_layer_->needs_painting ()) {
116114 root_layer_->Paint (paint_context);
0 commit comments