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

Unified Diff: cc/playback/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: rebase 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
« no previous file with comments | « cc/playback/picture_pile_impl.h ('k') | cc/playback/picture_pile_impl_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/picture_pile_impl.cc
diff --git a/cc/playback/picture_pile_impl.cc b/cc/playback/picture_pile_impl.cc
index f7d35be8532f0d95d47872417bb76f7f7404ca6c..345c24c7093b637972fb45b9a2dd50a548cc5589 100644
--- a/cc/playback/picture_pile_impl.cc
+++ b/cc/playback/picture_pile_impl.cc
@@ -100,12 +100,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_bitmap_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,
@@ -266,7 +268,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());
« no previous file with comments | « cc/playback/picture_pile_impl.h ('k') | cc/playback/picture_pile_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698