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

Unified Diff: Source/core/paint/Transform3DRecorder.cpp

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ready for review 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/core/paint/Transform3DRecorder.cpp
diff --git a/Source/core/paint/Transform3DRecorder.cpp b/Source/core/paint/Transform3DRecorder.cpp
index be8b29e39adbd0ad8bf6b656f75bd5cda1d3833c..b1bb961e506aef4e07fe43d0dab04363d2b0ff76 100644
--- a/Source/core/paint/Transform3DRecorder.cpp
+++ b/Source/core/paint/Transform3DRecorder.cpp
@@ -27,7 +27,7 @@ Transform3DRecorder::Transform3DRecorder(GraphicsContext& context, const Display
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginTransform3DDisplayItem::create(m_client, m_type, transform));
+ m_context.displayItemList()->createAndAppendIfNeeded<BeginTransform3DDisplayItem>(m_client, m_type, transform);
} else {
BeginTransform3DDisplayItem beginTransform(m_client, m_type, transform);
beginTransform.replay(m_context);
@@ -44,7 +44,7 @@ Transform3DRecorder::~Transform3DRecorder()
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(EndTransform3DDisplayItem::create(m_client, endType));
+ m_context.displayItemList()->createAndAppendIfNeeded<EndTransform3DDisplayItem>(m_client, endType);
} else {
EndTransform3DDisplayItem endTransform(m_client, endType);
endTransform.replay(m_context);

Powered by Google App Engine
This is Rietveld 408576698