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

Unified Diff: cc/playback/float_clip_display_item.h

Issue 2747273002: cc: Remove AsValue virtual from DisplayItem. (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « cc/playback/filter_display_item.cc ('k') | cc/playback/float_clip_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6233d3cebce044145c296b7b0f336aaea3539be7..1f68cef36e10b5c76f48a6f30caf3aa7c094b24d 100644
--- a/cc/playback/float_clip_display_item.h
+++ b/cc/playback/float_clip_display_item.h
@@ -26,12 +26,12 @@ class CC_EXPORT FloatClipDisplayItem : public DisplayItem {
void Raster(SkCanvas* canvas,
SkPicture::AbortCallback* callback) const override;
- void AsValueInto(const gfx::Rect& visual_rect,
- base::trace_event::TracedValue* array) const override;
size_t ExternalMemoryUsage() const { return 0; }
int ApproximateOpCount() const { return 1; }
+ const gfx::RectF& clip_rect() const { return clip_rect_; }
+
private:
void SetNew(const gfx::RectF& clip_rect);
@@ -49,8 +49,6 @@ class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
void Raster(SkCanvas* canvas,
SkPicture::AbortCallback* callback) const override;
- void AsValueInto(const gfx::Rect& visual_rect,
- base::trace_event::TracedValue* array) const override;
int ApproximateOpCount() const { return 0; }
};
« no previous file with comments | « cc/playback/filter_display_item.cc ('k') | cc/playback/float_clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698