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

Unified Diff: cc/paint/drawing_display_item.cc

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 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/paint/drawing_display_item.h ('k') | cc/paint/paint_op_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/drawing_display_item.cc
diff --git a/cc/paint/drawing_display_item.cc b/cc/paint/drawing_display_item.cc
index f8819c01e9864f1805cdc283ee70f7b2e31a14f0..5fc920bcd18af24880b572b3065ac618c393689a 100644
--- a/cc/paint/drawing_display_item.cc
+++ b/cc/paint/drawing_display_item.cc
@@ -8,13 +8,15 @@
namespace cc {
-DrawingDisplayItem::DrawingDisplayItem() : DisplayItem(DRAWING) {}
+DrawingDisplayItem::DrawingDisplayItem()
+ : DisplayItem(DRAWING), bounds(SkRect::MakeEmpty()) {}
-DrawingDisplayItem::DrawingDisplayItem(sk_sp<const PaintRecord> record)
- : DisplayItem(DRAWING), picture(std::move(record)) {}
+DrawingDisplayItem::DrawingDisplayItem(sk_sp<const PaintRecord> record,
+ const SkRect& bounds)
+ : DisplayItem(DRAWING), picture(std::move(record)), bounds(bounds) {}
DrawingDisplayItem::DrawingDisplayItem(const DrawingDisplayItem& item)
- : DisplayItem(DRAWING), picture(item.picture) {}
+ : DisplayItem(DRAWING), picture(item.picture), bounds(item.bounds) {}
DrawingDisplayItem::~DrawingDisplayItem() = default;
« no previous file with comments | « cc/paint/drawing_display_item.h ('k') | cc/paint/paint_op_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698