| Index: cc/playback/filter_display_item.h
|
| diff --git a/cc/playback/filter_display_item.h b/cc/playback/filter_display_item.h
|
| index 94bad210734dab7f810ccf9290d49f1fe9c07fcb..c0a8df993f1f5ca44a02dc383bb7cc66a8ffca2a 100644
|
| --- a/cc/playback/filter_display_item.h
|
| +++ b/cc/playback/filter_display_item.h
|
| @@ -17,20 +17,24 @@ namespace cc {
|
|
|
| class CC_EXPORT FilterDisplayItem : public DisplayItem {
|
| public:
|
| - FilterDisplayItem();
|
| + FilterDisplayItem(const FilterOperations& filters, const gfx::RectF& bounds);
|
| + explicit FilterDisplayItem(const proto::DisplayItem& proto);
|
| ~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_;
|
| };
|
| @@ -38,6 +42,7 @@ class CC_EXPORT FilterDisplayItem : public DisplayItem {
|
| class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
|
| public:
|
| EndFilterDisplayItem();
|
| + explicit EndFilterDisplayItem(const proto::DisplayItem& proto);
|
| ~EndFilterDisplayItem() override;
|
|
|
| static scoped_ptr<EndFilterDisplayItem> Create() {
|
| @@ -45,12 +50,15 @@ class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
|
| }
|
|
|
| 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
|
|
|