Index: cc/resources/drawing_display_item.h |
diff --git a/cc/resources/drawing_display_item.h b/cc/resources/drawing_display_item.h |
index da302d87d9c82096443b1eef9470693ea86faf1d..be9dbc33ab435e138a57bbe677a013540fc2547b 100644 |
--- a/cc/resources/drawing_display_item.h |
+++ b/cc/resources/drawing_display_item.h |
@@ -19,12 +19,10 @@ namespace cc { |
class CC_EXPORT DrawingDisplayItem : public DisplayItem { |
public: |
+ DrawingDisplayItem(); |
~DrawingDisplayItem() override; |
- static scoped_ptr<DrawingDisplayItem> Create( |
- skia::RefPtr<SkPicture> picture) { |
- return make_scoped_ptr(new DrawingDisplayItem(picture)); |
- } |
+ void SetNew(skia::RefPtr<SkPicture> picture); |
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override; |
@@ -33,7 +31,7 @@ class CC_EXPORT DrawingDisplayItem : public DisplayItem { |
size_t PictureMemoryUsage() const override; |
void AsValueInto(base::trace_event::TracedValue* array) const override; |
- scoped_ptr<DrawingDisplayItem> Clone(); |
+ void CloneTo(DrawingDisplayItem* item) const; |
protected: |
explicit DrawingDisplayItem(skia::RefPtr<SkPicture> picture); |