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

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: 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/TransformRecorder.cpp
diff --git a/Source/core/paint/TransformRecorder.cpp b/Source/core/paint/TransformRecorder.cpp
index fb96a941228b0fbed9bb6c0919fb17b6c7d08ed9..62b963529f0044b3a81ce0ff9f090c431c39ed1a 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()->createAndAppendIfNeeded<BeginTransformDisplayItem>(m_client, transform);
} else {
BeginTransformDisplayItem beginTransform(m_client, transform);
beginTransform.replay(m_context);
@@ -41,7 +41,7 @@ TransformRecorder::~TransformRecorder()
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
+ m_context.displayItemList()->createAndAppendIfNeeded<EndTransformDisplayItem>(m_client);
} else {
EndTransformDisplayItem endTransform(m_client);
endTransform.replay(m_context);

Powered by Google App Engine
This is Rietveld 408576698