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

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: bademacs 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..a17c7c6267bbf3334b20bc882afda136895cd799 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -90,12 +90,14 @@ void PicturePileImpl::RasterForAnalysis(skia::AnalysisCanvas* canvas,
}
void PicturePileImpl::PlaybackToCanvas(SkCanvas* canvas,
- const gfx::Rect& canvas_rect,
+ const gfx::Rect& canvas_bitmap_rect,
+ const gfx::Rect& canvas_playback_rect,
float contents_scale) const {
RasterSourceHelper::PrepareForPlaybackToCanvas(
- canvas, canvas_rect, gfx::Rect(tiling_.tiling_size()), contents_scale,
- background_color_, clear_canvas_with_debug_color_, requires_clear_);
- RasterCommon(canvas, NULL, canvas_rect, contents_scale);
+ canvas, canvas_bitmap_rect, canvas_playback_rect,
+ gfx::Rect(tiling_.tiling_size()), contents_scale, background_color_,
+ clear_canvas_with_debug_color_, requires_clear_);
+ RasterCommon(canvas, NULL, canvas_bitmap_rect, contents_scale);
}
void PicturePileImpl::CoalesceRasters(const gfx::Rect& canvas_rect,
@@ -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, tiling_rect, 1.0);
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());

Powered by Google App Engine
This is Rietveld 408576698