| Index: cc/playback/drawing_display_item.h
|
| diff --git a/cc/playback/drawing_display_item.h b/cc/playback/drawing_display_item.h
|
| index c9083a354b186dd26eb84554b99577112be04b85..466ce56725832cd05e6fc9f90904d7fbd1f34501 100644
|
| --- a/cc/playback/drawing_display_item.h
|
| +++ b/cc/playback/drawing_display_item.h
|
| @@ -19,10 +19,11 @@ namespace cc {
|
| class CC_EXPORT DrawingDisplayItem : public DisplayItem {
|
| public:
|
| DrawingDisplayItem();
|
| + explicit DrawingDisplayItem(skia::RefPtr<SkPicture> picture);
|
| + explicit DrawingDisplayItem(const proto::DisplayItem& proto);
|
| + explicit DrawingDisplayItem(const DrawingDisplayItem& item);
|
| ~DrawingDisplayItem() override;
|
|
|
| - void SetNew(skia::RefPtr<SkPicture> picture);
|
| -
|
| void ToProtobuf(proto::DisplayItem* proto) const override;
|
| void FromProtobuf(const proto::DisplayItem& proto) override;
|
| void Raster(SkCanvas* canvas,
|
| @@ -30,10 +31,16 @@ class CC_EXPORT DrawingDisplayItem : public DisplayItem {
|
| SkPicture::AbortCallback* callback) const override;
|
| void AsValueInto(const gfx::Rect& visual_rect,
|
| base::trace_event::TracedValue* array) const override;
|
| + size_t ExternalMemoryUsage() const override;
|
| +
|
| + int ApproximateOpCount() const;
|
| + bool IsSuitableForGpuRasterization() const;
|
|
|
| void CloneTo(DrawingDisplayItem* item) const;
|
|
|
| private:
|
| + void SetNew(skia::RefPtr<SkPicture> picture);
|
| +
|
| skia::RefPtr<SkPicture> picture_;
|
| };
|
|
|
|
|