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

Unified Diff: Source/core/paint/CompositingRecorder.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/BoxClipper.cpp ('k') | Source/core/paint/DisplayItemListPaintTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/CompositingRecorder.cpp
diff --git a/Source/core/paint/CompositingRecorder.cpp b/Source/core/paint/CompositingRecorder.cpp
index 874e65c4bd87074ab22d9929c3a63b1231bea5b5..9268a08f0f455fd12610dd9c26ad66a88ff4d5d2 100644
--- a/Source/core/paint/CompositingRecorder.cpp
+++ b/Source/core/paint/CompositingRecorder.cpp
@@ -31,10 +31,10 @@ void CompositingRecorder::beginCompositing(GraphicsContext& graphicsContext, con
ASSERT(graphicsContext.displayItemList());
if (graphicsContext.displayItemList()->displayItemConstructionIsDisabled())
return;
- graphicsContext.displayItemList()->add(BeginCompositingDisplayItem::create(client, xferMode, opacity, bounds, colorFilter));
+ graphicsContext.displayItemList()->createAndAppend<BeginCompositingDisplayItem>(client, xferMode, opacity, bounds, colorFilter);
} else {
- BeginCompositingDisplayItem beginCompositingDisplayItem(client, xferMode, opacity, bounds, colorFilter);
- beginCompositingDisplayItem.replay(graphicsContext);
+ BeginCompositingDisplayItem compositingDisplayItem(client, xferMode, opacity, bounds, colorFilter);
+ compositingDisplayItem.replay(graphicsContext);
}
}
@@ -46,7 +46,7 @@ void CompositingRecorder::endCompositing(GraphicsContext& graphicsContext, const
if (graphicsContext.displayItemList()->lastDisplayItemIsNoopBegin())
graphicsContext.displayItemList()->removeLastDisplayItem();
else
- graphicsContext.displayItemList()->add(EndCompositingDisplayItem::create(client));
+ graphicsContext.displayItemList()->createAndAppend<EndCompositingDisplayItem>(client);
}
} else {
EndCompositingDisplayItem endCompositingDisplayItem(client);
« no previous file with comments | « Source/core/paint/BoxClipper.cpp ('k') | Source/core/paint/DisplayItemListPaintTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698