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

Unified Diff: Source/core/paint/SubtreeRecorder.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/ScrollRecorder.cpp ('k') | Source/core/paint/Transform3DRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SubtreeRecorder.cpp
diff --git a/Source/core/paint/SubtreeRecorder.cpp b/Source/core/paint/SubtreeRecorder.cpp
index 4a2e464f2139241d1a8cc55b0917b1eec223e5e2..d748e39196b2ec755fa19617c2445772bff6523f 100644
--- a/Source/core/paint/SubtreeRecorder.cpp
+++ b/Source/core/paint/SubtreeRecorder.cpp
@@ -34,7 +34,7 @@ SubtreeRecorder::~SubtreeRecorder()
if (m_displayItemList->lastDisplayItemIsNoopBegin())
m_displayItemList->removeLastDisplayItem();
else
- m_displayItemList->add(EndSubtreeDisplayItem::create(m_subtreeRoot, DisplayItem::paintPhaseToEndSubtreeType(m_paintPhase)));
+ m_displayItemList->createAndAppend<EndSubtreeDisplayItem>(m_subtreeRoot, DisplayItem::paintPhaseToEndSubtreeType(m_paintPhase));
}
}
@@ -44,7 +44,7 @@ void SubtreeRecorder::begin()
return;
if (m_displayItemList->displayItemConstructionIsDisabled())
return;
- m_displayItemList->add(BeginSubtreeDisplayItem::create(m_subtreeRoot, DisplayItem::paintPhaseToBeginSubtreeType(m_paintPhase)));
+ m_displayItemList->createAndAppend<BeginSubtreeDisplayItem>(m_subtreeRoot, DisplayItem::paintPhaseToBeginSubtreeType(m_paintPhase));
m_begun = true;
}
« no previous file with comments | « Source/core/paint/ScrollRecorder.cpp ('k') | Source/core/paint/Transform3DRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698