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

Unified Diff: cc/resources/filter_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/drawing_display_item.cc ('k') | cc/resources/filter_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/filter_display_item.h
diff --git a/cc/resources/filter_display_item.h b/cc/resources/filter_display_item.h
index 28eeb95dc806f81ef9e8b9af1a79b644bd928602..5c5eaf3ad0155ee603a61be7ced20dd408c1b388 100644
--- a/cc/resources/filter_display_item.h
+++ b/cc/resources/filter_display_item.h
@@ -18,12 +18,10 @@ namespace cc {
class CC_EXPORT FilterDisplayItem : public DisplayItem {
public:
+ FilterDisplayItem();
~FilterDisplayItem() override;
- static scoped_ptr<FilterDisplayItem> Create(const FilterOperations& filters,
- gfx::RectF bounds) {
- return make_scoped_ptr(new FilterDisplayItem(filters, bounds));
- }
+ void SetNew(const FilterOperations& filters, const gfx::RectF& bounds);
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -42,6 +40,7 @@ class CC_EXPORT FilterDisplayItem : public DisplayItem {
class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
public:
+ EndFilterDisplayItem();
~EndFilterDisplayItem() override;
static scoped_ptr<EndFilterDisplayItem> Create() {
@@ -54,9 +53,6 @@ class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
int ApproximateOpCount() const override;
size_t PictureMemoryUsage() const override;
void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- EndFilterDisplayItem();
};
} // namespace cc
« no previous file with comments | « cc/resources/drawing_display_item.cc ('k') | cc/resources/filter_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698