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

Unified Diff: Source/core/paint/TransformRecorder.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
« no previous file with comments | « Source/core/paint/Transform3DRecorder.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/TransformRecorder.cpp
diff --git a/Source/core/paint/TransformRecorder.cpp b/Source/core/paint/TransformRecorder.cpp
index fb96a941228b0fbed9bb6c0919fb17b6c7d08ed9..369fd1628a212f27eec46fa3e599859f9c9aa791 100644
--- a/Source/core/paint/TransformRecorder.cpp
+++ b/Source/core/paint/TransformRecorder.cpp
@@ -21,13 +21,13 @@ TransformRecorder::TransformRecorder(GraphicsContext& context, const DisplayItem
if (m_skipRecordingForIdentityTransform)
return;
+ BeginTransformDisplayItem beginTransform(m_client, transform);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
+ m_context.displayItemList()->add(beginTransform);
} else {
- BeginTransformDisplayItem beginTransform(m_client, transform);
beginTransform.replay(m_context);
}
}
@@ -37,13 +37,13 @@ TransformRecorder::~TransformRecorder()
if (m_skipRecordingForIdentityTransform)
return;
+ EndTransformDisplayItem endTransform(m_client);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
+ m_context.displayItemList()->add(endTransform);
} else {
- EndTransformDisplayItem endTransform(m_client);
endTransform.replay(m_context);
}
}
« no previous file with comments | « Source/core/paint/Transform3DRecorder.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698