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

Unified Diff: cc/playback/transform_display_item.cc

Issue 1158553004: cc: Cull DrawingDisplayItems outside of the raster playback rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cull: . 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/transform_display_item.h ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/transform_display_item.cc
diff --git a/cc/playback/transform_display_item.cc b/cc/playback/transform_display_item.cc
index 16356a32a63544b3134a75cfb6d6b1ba1e1b32d6..5799dbb4d8739eda13d1408137c8b86bff8ae7e2 100644
--- a/cc/playback/transform_display_item.cc
+++ b/cc/playback/transform_display_item.cc
@@ -26,6 +26,7 @@ void TransformDisplayItem::SetNew(const gfx::Transform& transform) {
}
void TransformDisplayItem::Raster(SkCanvas* canvas,
+ const gfx::Rect& canvas_target_playback_rect,
SkPicture::AbortCallback* callback) const {
canvas->save();
if (!transform_.IsIdentity())
@@ -46,8 +47,10 @@ EndTransformDisplayItem::EndTransformDisplayItem() {
EndTransformDisplayItem::~EndTransformDisplayItem() {
}
-void EndTransformDisplayItem::Raster(SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const {
+void EndTransformDisplayItem::Raster(
+ SkCanvas* canvas,
+ const gfx::Rect& canvas_target_playback_rect,
+ SkPicture::AbortCallback* callback) const {
canvas->restore();
}
« no previous file with comments | « cc/playback/transform_display_item.h ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698