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

Unified Diff: cc/playback/drawing_display_item.cc

Issue 1484163002: Raster display item lists via a visual rect RTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head. Created 5 years 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/playback/drawing_display_item.cc
diff --git a/cc/playback/drawing_display_item.cc b/cc/playback/drawing_display_item.cc
index 05935778582c5d8d11b716610cac185db21816d5..cf0a63c13fb9a2d5b78f2162e6c41be2b3760b8b 100644
--- a/cc/playback/drawing_display_item.cc
+++ b/cc/playback/drawing_display_item.cc
@@ -69,18 +69,7 @@ void DrawingDisplayItem::FromProtobuf(const proto::DisplayItem& proto) {
}
void DrawingDisplayItem::Raster(SkCanvas* canvas,
- const gfx::Rect& canvas_target_playback_rect,
SkPicture::AbortCallback* callback) const {
- // The canvas_playback_rect can be empty to signify no culling is desired.
- if (!canvas_target_playback_rect.IsEmpty()) {
- const SkMatrix& matrix = canvas->getTotalMatrix();
- const SkRect& cull_rect = picture_->cullRect();
- SkRect target_rect;
- matrix.mapRect(&target_rect, cull_rect);
- if (!target_rect.intersect(gfx::RectToSkRect(canvas_target_playback_rect)))
- return;
- }
-
// SkPicture always does a wrapping save/restore on the canvas, so it is not
// necessary here.
if (callback)

Powered by Google App Engine
This is Rietveld 408576698