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

Unified Diff: Source/core/paint/Transform3DRecorder.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/SubtreeRecorder.cpp ('k') | Source/core/paint/TransformRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/Transform3DRecorder.cpp
diff --git a/Source/core/paint/Transform3DRecorder.cpp b/Source/core/paint/Transform3DRecorder.cpp
index be8b29e39adbd0ad8bf6b656f75bd5cda1d3833c..7a7780950a63eb17bb779bc884318e804bbbc247 100644
--- a/Source/core/paint/Transform3DRecorder.cpp
+++ b/Source/core/paint/Transform3DRecorder.cpp
@@ -23,13 +23,13 @@ Transform3DRecorder::Transform3DRecorder(GraphicsContext& context, const Display
if (m_skipRecordingForIdentityTransform)
return;
+ BeginTransform3DDisplayItem beginTransform(m_client, m_type, transform);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(BeginTransform3DDisplayItem::create(m_client, m_type, transform));
+ m_context.displayItemList()->add(beginTransform);
} else {
- BeginTransform3DDisplayItem beginTransform(m_client, m_type, transform);
beginTransform.replay(m_context);
}
}
@@ -40,13 +40,13 @@ Transform3DRecorder::~Transform3DRecorder()
return;
DisplayItem::Type endType = DisplayItem::transform3DTypeToEndTransform3DType(m_type);
+ EndTransform3DDisplayItem endTransform(m_client, endType);
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
ASSERT(m_context.displayItemList());
if (m_context.displayItemList()->displayItemConstructionIsDisabled())
return;
- m_context.displayItemList()->add(EndTransform3DDisplayItem::create(m_client, endType));
+ m_context.displayItemList()->add(endTransform);
} else {
- EndTransform3DDisplayItem endTransform(m_client, endType);
endTransform.replay(m_context);
}
}
« no previous file with comments | « Source/core/paint/SubtreeRecorder.cpp ('k') | Source/core/paint/TransformRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698