From 99d48aab30d9231390a8ebde51303c16f079b5d8 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Thu, 10 May 2018 12:32:17 -0700 Subject: [PATCH] Bypass the raster cache when screenshotting (flutter/engine#5227) Fixes https://github.com/flutter/flutter/issues/17448 --- engine/src/flutter/shell/common/rasterizer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/common/rasterizer.cc b/engine/src/flutter/shell/common/rasterizer.cc index df545f1dd8..6486d69aa8 100644 --- a/engine/src/flutter/shell/common/rasterizer.cc +++ b/engine/src/flutter/shell/common/rasterizer.cc @@ -176,7 +176,7 @@ static sk_sp ScreenshotLayerTreeAsImage( auto canvas = snapshot_surface->getCanvas(); auto frame = compositor_context.AcquireFrame(surface_context, canvas, false); canvas->clear(SK_ColorBLACK); - frame->Raster(*tree, false); + frame->Raster(*tree, true); canvas->flush(); // Prepare an image from the surface, this image may potentially be on th GPU.