| Index: cc/playback/float_clip_display_item.h
|
| diff --git a/cc/playback/float_clip_display_item.h b/cc/playback/float_clip_display_item.h
|
| index 3dd788b03803fb4818b46de2aa766912627e51ce..ccbbf4f6bf05696f01c5b0b6883ac6476b43bbd1 100644
|
| --- a/cc/playback/float_clip_display_item.h
|
| +++ b/cc/playback/float_clip_display_item.h
|
| @@ -18,11 +18,10 @@ namespace cc {
|
|
|
| class CC_EXPORT FloatClipDisplayItem : public DisplayItem {
|
| public:
|
| - FloatClipDisplayItem();
|
| + explicit FloatClipDisplayItem(const gfx::RectF& clip_rect);
|
| + explicit FloatClipDisplayItem(const proto::DisplayItem& proto);
|
| ~FloatClipDisplayItem() override;
|
|
|
| - void SetNew(const gfx::RectF& clip_rect);
|
| -
|
| void ToProtobuf(proto::DisplayItem* proto) const override;
|
| void FromProtobuf(const proto::DisplayItem& proto) override;
|
| void Raster(SkCanvas* canvas,
|
| @@ -30,14 +29,21 @@ class CC_EXPORT FloatClipDisplayItem : 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 { return 1; }
|
| + bool IsSuitableForGpuRasterization() const { return true; }
|
|
|
| private:
|
| + void SetNew(const gfx::RectF& clip_rect);
|
| +
|
| gfx::RectF clip_rect_;
|
| };
|
|
|
| class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
|
| public:
|
| EndFloatClipDisplayItem();
|
| + explicit EndFloatClipDisplayItem(const proto::DisplayItem& proto);
|
| ~EndFloatClipDisplayItem() override;
|
|
|
| static scoped_ptr<EndFloatClipDisplayItem> Create() {
|
| @@ -51,6 +57,10 @@ class CC_EXPORT EndFloatClipDisplayItem : 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 { return 0; }
|
| + bool IsSuitableForGpuRasterization() const { return true; }
|
| };
|
|
|
| } // namespace cc
|
|
|