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

Unified Diff: Source/core/paint/TransformRecorder.cpp

Issue 1203343002: WIP for display item list backed by ListContainer Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/graphics/paint/CachedDisplayItem.h » ('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 587f8c99cd549ca24e6fd2bf25b5d216bd1b7963..3501d5f5fc3cc5febb1f94dc01fda03b49d2a60b 100644
--- a/Source/core/paint/TransformRecorder.cpp
+++ b/Source/core/paint/TransformRecorder.cpp
@@ -21,15 +21,18 @@ TransformRecorder::TransformRecorder(GraphicsContext& context, const DisplayItem
if (m_skipRecordingForIdentityTransform)
return;
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(m_context.displayItemList());
- if (m_context.displayItemList()->displayItemConstructionIsDisabled())
- return;
- m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
- } else {
- BeginTransformDisplayItem beginTransform(m_client, transform);
- beginTransform.replay(m_context);
- }
+ ALLOW_UNUSED_LOCAL(m_skipRecordingForIdentityTransform);
+ ALLOW_UNUSED_LOCAL(m_context);
+ ALLOW_UNUSED_LOCAL(m_client);
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(m_context.displayItemList());
+ // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
+ // return;
+ // m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
+ //} else {
+ // BeginTransformDisplayItem beginTransform(m_client, transform);
+ // beginTransform.replay(m_context);
+ //}
}
TransformRecorder::~TransformRecorder()
@@ -37,18 +40,18 @@ TransformRecorder::~TransformRecorder()
if (m_skipRecordingForIdentityTransform)
return;
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(m_context.displayItemList());
- if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
- if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
- m_context.displayItemList()->removeLastDisplayItem();
- else
- m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
- }
- } else {
- EndTransformDisplayItem endTransform(m_client);
- endTransform.replay(m_context);
- }
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(m_context.displayItemList());
+ // if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
+ // if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
+ // m_context.displayItemList()->removeLastDisplayItem();
+ // else
+ // m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
+ // }
+ //} else {
+ // EndTransformDisplayItem endTransform(m_client);
+ // endTransform.replay(m_context);
+ //}
}
} // namespace blink
« no previous file with comments | « Source/core/paint/Transform3DRecorder.cpp ('k') | Source/platform/graphics/paint/CachedDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698