Chromium Code Reviews| Index: cc/playback/clip_display_item.h |
| diff --git a/cc/playback/clip_display_item.h b/cc/playback/clip_display_item.h |
| index c66e4675750cbb1157b8b5cde00468335f3801e0..352d4adf2bd4d552893ba4bf8514da2e1d9d0127 100644 |
| --- a/cc/playback/clip_display_item.h |
| +++ b/cc/playback/clip_display_item.h |
| @@ -19,7 +19,9 @@ namespace cc { |
| class CC_EXPORT ClipDisplayItem : public DisplayItem { |
| public: |
| - ClipDisplayItem(); |
| + ClipDisplayItem(gfx::Rect clip_rect, |
| + const std::vector<SkRRect>& rounded_clip_rects); |
| + explicit ClipDisplayItem(const proto::DisplayItem& proto); |
| ~ClipDisplayItem() override; |
| void SetNew(gfx::Rect clip_rect, |
|
vmpstr
2015/12/04 00:43:09
Are the SetNew functions in all of these unused no
|
| @@ -32,6 +34,8 @@ class CC_EXPORT ClipDisplayItem : 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 override; |
| private: |
| gfx::Rect clip_rect_; |
| @@ -41,6 +45,7 @@ class CC_EXPORT ClipDisplayItem : public DisplayItem { |
| class CC_EXPORT EndClipDisplayItem : public DisplayItem { |
| public: |
| EndClipDisplayItem(); |
| + explicit EndClipDisplayItem(const proto::DisplayItem& proto); |
| ~EndClipDisplayItem() override; |
| void ToProtobuf(proto::DisplayItem* proto) const override; |
| @@ -50,6 +55,8 @@ class CC_EXPORT EndClipDisplayItem : 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 override; |
| }; |
| } // namespace cc |