| Index: cc/playback/filter_display_item.h
|
| diff --git a/cc/playback/filter_display_item.h b/cc/playback/filter_display_item.h
|
| index c0a8df993f1f5ca44a02dc383bb7cc66a8ffca2a..94bad210734dab7f810ccf9290d49f1fe9c07fcb 100644
|
| --- a/cc/playback/filter_display_item.h
|
| +++ b/cc/playback/filter_display_item.h
|
| @@ -17,24 +17,20 @@
|
|
|
| class CC_EXPORT FilterDisplayItem : public DisplayItem {
|
| public:
|
| - FilterDisplayItem(const FilterOperations& filters, const gfx::RectF& bounds);
|
| - explicit FilterDisplayItem(const proto::DisplayItem& proto);
|
| + FilterDisplayItem();
|
| ~FilterDisplayItem() override;
|
|
|
| + void SetNew(const FilterOperations& filters, const gfx::RectF& bounds);
|
| +
|
| void ToProtobuf(proto::DisplayItem* proto) const override;
|
| + void FromProtobuf(const proto::DisplayItem& proto) override;
|
| void Raster(SkCanvas* canvas,
|
| const gfx::Rect& canvas_target_playback_rect,
|
| 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 { return 1; }
|
| - bool IsSuitableForGpuRasterization() const { return true; }
|
|
|
| private:
|
| - void SetNew(const FilterOperations& filters, const gfx::RectF& bounds);
|
| -
|
| FilterOperations filters_;
|
| gfx::RectF bounds_;
|
| };
|
| @@ -42,7 +38,6 @@
|
| class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
|
| public:
|
| EndFilterDisplayItem();
|
| - explicit EndFilterDisplayItem(const proto::DisplayItem& proto);
|
| ~EndFilterDisplayItem() override;
|
|
|
| static scoped_ptr<EndFilterDisplayItem> Create() {
|
| @@ -50,15 +45,12 @@
|
| }
|
|
|
| void ToProtobuf(proto::DisplayItem* proto) const override;
|
| + void FromProtobuf(const proto::DisplayItem& proto) override;
|
| void Raster(SkCanvas* canvas,
|
| const gfx::Rect& canvas_target_playback_rect,
|
| 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 { return 0; }
|
| - bool IsSuitableForGpuRasterization() const { return true; }
|
| };
|
|
|
| } // namespace cc
|
|
|