Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: cc/resources/picture_pile_impl.cc

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index d1fba063af1dd62900ea0ee963e4a3e79be413ed..3ada211351a04d402cf9952d62e117215b551f32 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -91,10 +91,12 @@ void PicturePileImpl::RasterForAnalysis(skia::AnalysisCanvas* canvas,
void PicturePileImpl::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(tiling_.tiling_size()), contents_scale,
- background_color_, clear_canvas_with_debug_color_, requires_clear_);
+ background_color_, clear_canvas_with_debug_color_, requires_clear_,
+ partial_update);
RasterCommon(canvas, NULL, canvas_rect, contents_scale);
}
@@ -256,7 +258,7 @@ skia::RefPtr<SkPicture> PicturePileImpl::GetFlattenedPicture() {
SkCanvas* canvas =
recorder.beginRecording(tiling_rect.width(), tiling_rect.height());
if (!tiling_rect.IsEmpty())
- PlaybackToCanvas(canvas, tiling_rect, 1.0);
+ PlaybackToCanvas(canvas, tiling_rect, 1.0, false /* partial_update */);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());

Powered by Google App Engine
This is Rietveld 408576698