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

Unified Diff: Source/core/paint/SVGMaskPainter.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/SVGClipPainter.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGMaskPainter.cpp
diff --git a/Source/core/paint/SVGMaskPainter.cpp b/Source/core/paint/SVGMaskPainter.cpp
index 0096a38592c90d0bde4feede2c2b96d16fcb42b6..3bde83583ec19977bac53bd8510fb0a0a6c31980 100644
--- a/Source/core/paint/SVGMaskPainter.cpp
+++ b/Source/core/paint/SVGMaskPainter.cpp
@@ -32,7 +32,7 @@ bool SVGMaskPainter::prepareEffect(const LayoutObject& object, GraphicsContext*
ASSERT(context->displayItemList());
if (context->displayItemList()->displayItemConstructionIsDisabled())
return true;
- context->displayItemList()->add(BeginCompositingDisplayItem::create(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect));
+ context->displayItemList()->createAndAppend<BeginCompositingDisplayItem>(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect);
} else {
BeginCompositingDisplayItem beginCompositingContent(object, SkXfermode::kSrcOver_Mode, 1, &paintInvalidationRect);
beginCompositingContent.replay(*context);
@@ -61,7 +61,7 @@ void SVGMaskPainter::finishEffect(const LayoutObject& object, GraphicsContext* c
if (context->displayItemList()->lastDisplayItemIsNoopBegin())
context->displayItemList()->removeLastDisplayItem();
else
- context->displayItemList()->add(EndCompositingDisplayItem::create(object));
+ context->displayItemList()->createAndAppend<EndCompositingDisplayItem>(object);
}
} else {
EndCompositingDisplayItem endCompositingContent(object);
« no previous file with comments | « Source/core/paint/SVGClipPainter.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698