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

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

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ListContainer::AllocateAndConstructWithArguments and a TODO in DisplayItemList::findMatchingIte… 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
« no previous file with comments | « Source/core/paint/Transform3DRecorder.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TransformRecorder.cpp
diff --git a/Source/core/paint/TransformRecorder.cpp b/Source/core/paint/TransformRecorder.cpp
index 587f8c99cd549ca24e6fd2bf25b5d216bd1b7963..62a6b68e93ac4116ebd659548f366a22c65ffe6e 100644
--- a/Source/core/paint/TransformRecorder.cpp
+++ b/Source/core/paint/TransformRecorder.cpp
@@ -25,7 +25,7 @@ TransformRecorder::TransformRecorder(GraphicsContext& context, const DisplayItem
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
+ m_context.displayItemList()->createAndAppend<BeginTransformDisplayItem>(m_client, transform);
} else {
BeginTransformDisplayItem beginTransform(m_client, transform);
beginTransform.replay(m_context);
@@ -43,7 +43,7 @@ TransformRecorder::~TransformRecorder()
if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
m_context.displayItemList()->removeLastDisplayItem();
else
- m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
+ m_context.displayItemList()->createAndAppend<EndTransformDisplayItem>(m_client);
}
} else {
EndTransformDisplayItem endTransform(m_client);
« no previous file with comments | « Source/core/paint/Transform3DRecorder.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698