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

Unified Diff: Source/core/paint/ScrollRecorder.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/SVGMaskPainter.cpp ('k') | Source/core/paint/SubtreeRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ScrollRecorder.cpp
diff --git a/Source/core/paint/ScrollRecorder.cpp b/Source/core/paint/ScrollRecorder.cpp
index cdcf9d7f2f17153d57375149e180c5ecf4554191..2adeb81a9fa1028b61c5c68659c8169e35dcbb09 100644
--- a/Source/core/paint/ScrollRecorder.cpp
+++ b/Source/core/paint/ScrollRecorder.cpp
@@ -21,7 +21,7 @@ ScrollRecorder::ScrollRecorder(GraphicsContext& context, const DisplayItemClient
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginScrollDisplayItem::create(m_client, m_beginItemType, currentOffset));
+ m_context.displayItemList()->createAndAppend<BeginScrollDisplayItem>(m_client, m_beginItemType, currentOffset);
} else {
BeginScrollDisplayItem scrollDisplayItem(m_client, m_beginItemType, currentOffset);
scrollDisplayItem.replay(m_context);
@@ -37,7 +37,7 @@ ScrollRecorder::~ScrollRecorder()
if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
m_context.displayItemList()->removeLastDisplayItem();
else
- m_context.displayItemList()->add(EndScrollDisplayItem::create(m_client, endItemType));
+ m_context.displayItemList()->createAndAppend<EndScrollDisplayItem>(m_client, endItemType);
}
} else {
EndScrollDisplayItem endScrollDisplayItem(m_client, endItemType);
« no previous file with comments | « Source/core/paint/SVGMaskPainter.cpp ('k') | Source/core/paint/SubtreeRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698