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

Unified Diff: cc/resources/transform_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/largest_display_item.cc ('k') | cc/resources/transform_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/transform_display_item.h
diff --git a/cc/resources/transform_display_item.h b/cc/resources/transform_display_item.h
index fe0dbd236fe4cabacda55904a757a4a30c059b79..5d2d15e2efdc0b66a6ff51f4265d3135a786651e 100644
--- a/cc/resources/transform_display_item.h
+++ b/cc/resources/transform_display_item.h
@@ -17,12 +17,10 @@ namespace cc {
class CC_EXPORT TransformDisplayItem : public DisplayItem {
public:
+ TransformDisplayItem();
~TransformDisplayItem() override;
- static scoped_ptr<TransformDisplayItem> Create(
- const gfx::Transform& transform) {
- return make_scoped_ptr(new TransformDisplayItem(transform));
- }
+ void SetNew(const gfx::Transform& transform);
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -40,6 +38,7 @@ class CC_EXPORT TransformDisplayItem : public DisplayItem {
class CC_EXPORT EndTransformDisplayItem : public DisplayItem {
public:
+ EndTransformDisplayItem();
~EndTransformDisplayItem() override;
static scoped_ptr<EndTransformDisplayItem> Create() {
@@ -52,9 +51,6 @@ class CC_EXPORT EndTransformDisplayItem : public DisplayItem {
int ApproximateOpCount() const override;
size_t PictureMemoryUsage() const override;
void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- EndTransformDisplayItem();
};
} // namespace cc
« no previous file with comments | « cc/resources/largest_display_item.cc ('k') | cc/resources/transform_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698