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

Unified Diff: cc/resources/clip_path_display_item.h

Issue 1123983002: cc: Use a ListContainer for DisplayItemList to reduce allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaylistcontainer: fixdcheck Created 5 years, 7 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/resources/clip_display_item.cc ('k') | cc/resources/clip_path_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/clip_path_display_item.h
diff --git a/cc/resources/clip_path_display_item.h b/cc/resources/clip_path_display_item.h
index a3f8e0d074c7ff7e89ef8b97dd506c0fa4b6fa1d..bf2670e87d46bec4ff6bb31dd967b9b689119a5d 100644
--- a/cc/resources/clip_path_display_item.h
+++ b/cc/resources/clip_path_display_item.h
@@ -18,13 +18,10 @@ namespace cc {
class CC_EXPORT ClipPathDisplayItem : public DisplayItem {
public:
+ ClipPathDisplayItem();
~ClipPathDisplayItem() override;
- static scoped_ptr<ClipPathDisplayItem> Create(const SkPath& path,
- SkRegion::Op clip_op,
- bool antialias) {
- return make_scoped_ptr(new ClipPathDisplayItem(path, clip_op, antialias));
- }
+ void SetNew(const SkPath& path, SkRegion::Op clip_op, bool antialias);
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -44,6 +41,7 @@ class CC_EXPORT ClipPathDisplayItem : public DisplayItem {
class CC_EXPORT EndClipPathDisplayItem : public DisplayItem {
public:
+ EndClipPathDisplayItem();
~EndClipPathDisplayItem() override;
static scoped_ptr<EndClipPathDisplayItem> Create() {
@@ -56,9 +54,6 @@ class CC_EXPORT EndClipPathDisplayItem : public DisplayItem {
int ApproximateOpCount() const override;
size_t PictureMemoryUsage() const override;
void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- EndClipPathDisplayItem();
};
} // namespace cc
« no previous file with comments | « cc/resources/clip_display_item.cc ('k') | cc/resources/clip_path_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698