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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.cpp

Issue 1192443003: [Slimming Paint] Blink-side contiguous allocation of display items. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: need a constructor with WTF_MAKE_NONCOPYABLE Created 5 years, 6 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
Index: Source/platform/graphics/paint/DrawingRecorder.cpp
diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
index 34b43b3b99dd704803043d5ba30baaffd5a1f975..ba6c1374551c349e6e3ee80f2d5b2a31e5713ef0 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.cpp
+++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
@@ -91,13 +91,14 @@ DrawingRecorder::~DrawingRecorder()
m_displayItemClient.debugName().utf8().data());
}
#endif
- m_context.displayItemList()->add(CachedDisplayItem::create(m_displayItemClient, DisplayItem::drawingTypeToCachedType(m_displayItemType)));
+ CachedDisplayItem cachedDisplayItem(m_displayItemClient, DisplayItem::drawingTypeToCachedType(m_displayItemType));
+ m_context.displayItemList()->add(cachedDisplayItem);
} else {
- OwnPtr<DrawingDisplayItem> drawingDisplayItem = DrawingDisplayItem::create(m_displayItemClient, m_displayItemType, m_context.endRecording());
+ DrawingDisplayItem drawingDisplayItem(m_displayItemClient, m_displayItemType, m_context.endRecording());
#if ENABLE(ASSERT)
- drawingDisplayItem->setUnderInvalidationCheckingMode(m_underInvalidationCheckingMode);
+ drawingDisplayItem.setUnderInvalidationCheckingMode(m_underInvalidationCheckingMode);
#endif
- m_context.displayItemList()->add(drawingDisplayItem.release());
+ m_context.displayItemList()->add(drawingDisplayItem);
}
}
« no previous file with comments | « Source/platform/graphics/paint/DrawingDisplayItem.cpp ('k') | Source/platform/graphics/paint/FilterDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698