Chromium Code Reviews| Index: cc/resources/display_list_raster_source.cc |
| diff --git a/cc/resources/display_list_raster_source.cc b/cc/resources/display_list_raster_source.cc |
| index 8a2df82a877f4365fb65f29b487429f2d627165b..3ab70a80ebec4bd2554555306938f1d3d20b2d24 100644 |
| --- a/cc/resources/display_list_raster_source.cc |
| +++ b/cc/resources/display_list_raster_source.cc |
| @@ -98,10 +98,11 @@ void DisplayListRasterSource::RasterForAnalysis(skia::AnalysisCanvas* canvas, |
| void DisplayListRasterSource::PlaybackToCanvas(SkCanvas* canvas, |
| const gfx::Rect& canvas_rect, |
| - float contents_scale) const { |
| + float contents_scale, |
| + bool partial_update) const { |
| RasterSourceHelper::PrepareForPlaybackToCanvas( |
| canvas, canvas_rect, gfx::Rect(size_), contents_scale, background_color_, |
| - clear_canvas_with_debug_color_, requires_clear_); |
| + clear_canvas_with_debug_color_, requires_clear_, partial_update); |
| RasterCommon(canvas, NULL, canvas_rect, contents_scale); |
| } |
| @@ -129,7 +130,8 @@ skia::RefPtr<SkPicture> DisplayListRasterSource::GetFlattenedPicture() { |
| SkCanvas* canvas = recorder.beginRecording(display_list_rect.width(), |
| display_list_rect.height()); |
| if (!display_list_rect.IsEmpty()) |
|
piman
2015/05/14 19:50:46
nit: {}
danakj
2015/05/14 22:03:42
Undone.
|
| - PlaybackToCanvas(canvas, display_list_rect, 1.0); |
| + PlaybackToCanvas(canvas, display_list_rect, 1.0, |
| + false /* partial_update */); |
| skia::RefPtr<SkPicture> picture = |
| skia::AdoptRef(recorder.endRecordingAsPicture()); |