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

Unified Diff: cc/playback/clip_path_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/clip_display_item.cc ('k') | cc/playback/clip_path_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/clip_path_display_item.h
diff --git a/cc/playback/clip_path_display_item.h b/cc/playback/clip_path_display_item.h
index f736b02314845aeeab674221369bc4d54adb1144..3cb6dc8609b3018bc66bf8198b2879057d05a038 100644
--- a/cc/playback/clip_path_display_item.h
+++ b/cc/playback/clip_path_display_item.h
@@ -25,8 +25,6 @@ class CC_EXPORT ClipPathDisplayItem : 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 {
// The size of SkPath's external storage is not currently accounted for (and
@@ -35,6 +33,8 @@ class CC_EXPORT ClipPathDisplayItem : public DisplayItem {
}
int ApproximateOpCount() const { return 1; }
+ const SkPath& clip_path() const { return clip_path_; }
+
private:
void SetNew(const SkPath& path, bool antialias);
@@ -53,8 +53,6 @@ class CC_EXPORT EndClipPathDisplayItem : 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/clip_display_item.cc ('k') | cc/playback/clip_path_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698