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

Unified Diff: cc/playback/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/debug/traced_display_item_list.cc ('k') | cc/playback/clip_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/clip_display_item.h
diff --git a/cc/playback/clip_display_item.h b/cc/playback/clip_display_item.h
index 8ab86aeeaeb634ad0ffa382d9a50d08076fa09b2..5830f96ada188f3e0f24b15f00aa269b8764c9e0 100644
--- a/cc/playback/clip_display_item.h
+++ b/cc/playback/clip_display_item.h
@@ -28,14 +28,17 @@ class CC_EXPORT ClipDisplayItem : 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 rounded_clip_rects_.capacity() * sizeof(rounded_clip_rects_[0]);
}
int ApproximateOpCount() const { return 1; }
+ const gfx::Rect& clip_rect() const { return clip_rect_; }
+ const std::vector<SkRRect>& rounded_clip_rects() const {
+ return rounded_clip_rects_;
+ }
+
private:
void SetNew(const gfx::Rect& clip_rect,
const std::vector<SkRRect>& rounded_clip_rects,
@@ -53,8 +56,6 @@ class CC_EXPORT EndClipDisplayItem : 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/debug/traced_display_item_list.cc ('k') | cc/playback/clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698