Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Unified Diff: cc/playback/float_clip_display_item.h

Issue 1494223003: cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make ui compile too oops Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..8b94a13175a423517a6703768e2183b3c601d378 100644
--- a/cc/playback/float_clip_display_item.h
+++ b/cc/playback/float_clip_display_item.h
@@ -18,7 +18,8 @@ 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);
@@ -30,6 +31,8 @@ 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 override;
private:
gfx::RectF clip_rect_;
@@ -38,6 +41,7 @@ class CC_EXPORT FloatClipDisplayItem : public DisplayItem {
class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
public:
EndFloatClipDisplayItem();
+ explicit EndFloatClipDisplayItem(const proto::DisplayItem& proto);
~EndFloatClipDisplayItem() override;
static scoped_ptr<EndFloatClipDisplayItem> Create() {
@@ -51,6 +55,8 @@ 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 override;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698