Index: cc/resources/picture_pile_impl.cc |
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc |
index d0f6cf9e22fda001a93e8064240fe1c7b7e7d247..bb467474f8dc3ba99bf5980c41cb38edddacbb80 100644 |
--- a/cc/resources/picture_pile_impl.cc |
+++ b/cc/resources/picture_pile_impl.cc |
@@ -98,6 +98,7 @@ void PicturePileImpl::RasterToBitmap( |
const gfx::Rect& canvas_rect, |
float contents_scale, |
RenderingStatsInstrumentation* rendering_stats_instrumentation) { |
+ canvas->discard(); |
if (clear_canvas_with_debug_color_) { |
// Any non-painted areas in the content bounds will be left in this color. |
canvas->clear(DebugColors::NonPaintedFillColor()); |