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

Unified Diff: Source/platform/graphics/paint/ClipPathRecorder.cpp

Issue 1192443003: [Slimming Paint] Blink-side contiguous allocation of display items. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: need a constructor with WTF_MAKE_NONCOPYABLE 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/platform/graphics/paint/ClipPathRecorder.cpp
diff --git a/Source/platform/graphics/paint/ClipPathRecorder.cpp b/Source/platform/graphics/paint/ClipPathRecorder.cpp
index 65ac303a8992c0e21587aa8fee50bbfcdef1f0c5..4d98c6e17d999d04b7d81e9a2724447bb39d67c5 100644
--- a/Source/platform/graphics/paint/ClipPathRecorder.cpp
+++ b/Source/platform/graphics/paint/ClipPathRecorder.cpp
@@ -16,26 +16,26 @@ ClipPathRecorder::ClipPathRecorder(GraphicsContext& context, const DisplayItemCl
: m_context(context)
, m_client(client)
{
+ BeginClipPathDisplayItem clipPathDisplayItem(m_client, clipPath);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginClipPathDisplayItem::create(m_client, clipPath));
+ m_context.displayItemList()->add(clipPathDisplayItem);
} else {
- BeginClipPathDisplayItem clipPathDisplayItem(m_client, clipPath);
clipPathDisplayItem.replay(m_context);
}
}
ClipPathRecorder::~ClipPathRecorder()
{
+ EndClipPathDisplayItem endClipPathDisplayItem(m_client);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(EndClipPathDisplayItem::create(m_client));
+ m_context.displayItemList()->add(endClipPathDisplayItem);
} else {
- EndClipPathDisplayItem endClipPathDisplayItem(m_client);
endClipPathDisplayItem.replay(m_context);
}
}
« no previous file with comments | « Source/platform/graphics/paint/ClipPathDisplayItem.cpp ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698