From 637e921d6fc0c93df09c85fc58ce61c051b1f609 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 19 Apr 2018 13:32:00 -0700 Subject: [PATCH] Use the raster cache when rendering screenshots as bitmaps (#5050) This matches the behavior from before the shell refactoring. Fixes https://github.com/flutter/flutter/issues/16754 --- shell/common/rasterizer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/rasterizer.cc b/shell/common/rasterizer.cc index e4f6871568..9c1b8efd7e 100644 --- a/shell/common/rasterizer.cc +++ b/shell/common/rasterizer.cc @@ -164,7 +164,7 @@ static sk_sp ScreenshotLayerTreeAsImage(flow::LayerTree* tree, auto canvas = snapshot_surface->getCanvas(); auto frame = compositor_context.AcquireFrame(surface_context, canvas, false); canvas->clear(SK_ColorBLACK); - frame->Raster(*tree, true); + frame->Raster(*tree, false); canvas->flush(); // Prepare an image from the surface, this image may potentially be on th GPU. -- GitLab