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

Unified Diff: cc/resources/float_clip_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/filter_display_item.cc ('k') | cc/resources/float_clip_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/float_clip_display_item.h
diff --git a/cc/resources/float_clip_display_item.h b/cc/resources/float_clip_display_item.h
index af88c50a20ace409d886bbea5db7a8cea9e3b3dc..72857fc7d7cd9cdfa35cb7bcf16f0f9a18258ec0 100644
--- a/cc/resources/float_clip_display_item.h
+++ b/cc/resources/float_clip_display_item.h
@@ -19,11 +19,10 @@ namespace cc {
class CC_EXPORT FloatClipDisplayItem : public DisplayItem {
public:
+ FloatClipDisplayItem();
~FloatClipDisplayItem() override;
- static scoped_ptr<FloatClipDisplayItem> Create(gfx::RectF clip_rect) {
- return make_scoped_ptr(new FloatClipDisplayItem(clip_rect));
- }
+ void SetNew(const gfx::RectF& clip_rect);
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -41,6 +40,7 @@ class CC_EXPORT FloatClipDisplayItem : public DisplayItem {
class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
public:
+ EndFloatClipDisplayItem();
~EndFloatClipDisplayItem() override;
static scoped_ptr<EndFloatClipDisplayItem> Create() {
@@ -53,9 +53,6 @@ class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem {
int ApproximateOpCount() const override;
size_t PictureMemoryUsage() const override;
void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- EndFloatClipDisplayItem();
};
} // namespace cc
« no previous file with comments | « cc/resources/filter_display_item.cc ('k') | cc/resources/float_clip_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698