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; |