Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fade83c

Browse files
authored
Bypass the raster cache when screenshotting (#5227)
Fixes flutter/flutter#17448
1 parent 37e20af commit fade83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/common/rasterizer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static sk_sp<SkData> ScreenshotLayerTreeAsImage(
176176
auto canvas = snapshot_surface->getCanvas();
177177
auto frame = compositor_context.AcquireFrame(surface_context, canvas, false);
178178
canvas->clear(SK_ColorBLACK);
179-
frame->Raster(*tree, false);
179+
frame->Raster(*tree, true);
180180
canvas->flush();
181181

182182
// Prepare an image from the surface, this image may potentially be on th GPU.

0 commit comments

Comments
 (0)