Skip to content

Commit

Permalink
Bypass the raster cache when screenshotting (flutter#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolkert authored May 10, 2018
1 parent 37e20af commit fade83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/common/rasterizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static sk_sp<SkData> 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.
Expand Down

0 comments on commit fade83c

Please sign in to comment.