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

Unified Diff: Source/core/paint/FloatClipRecorder.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/FilterPainter.cpp ('k') | Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/FloatClipRecorder.cpp
diff --git a/Source/core/paint/FloatClipRecorder.cpp b/Source/core/paint/FloatClipRecorder.cpp
index afb14eaed42c5e9b2a5117535664de57a8be280c..d3131dbcea781c6e106b3dccdff75f20ee68167c 100644
--- a/Source/core/paint/FloatClipRecorder.cpp
+++ b/Source/core/paint/FloatClipRecorder.cpp
@@ -17,32 +17,35 @@ FloatClipRecorder::FloatClipRecorder(GraphicsContext& context, const DisplayItem
, m_client(client)
, m_clipType(DisplayItem::paintPhaseToFloatClipType(paintPhase))
{
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(m_context.displayItemList());
- if (m_context.displayItemList()->displayItemConstructionIsDisabled())
- return;
- m_context.displayItemList()->add(FloatClipDisplayItem::create(m_client, m_clipType, clipRect));
- } else {
- FloatClipDisplayItem clipDisplayItem(m_client, m_clipType, clipRect);
- clipDisplayItem.replay(m_context);
- }
+ ALLOW_UNUSED_LOCAL(m_context);
+ ALLOW_UNUSED_LOCAL(m_client);
+ ALLOW_UNUSED_LOCAL(m_clipType);
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(m_context.displayItemList());
+ // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
+ // return;
+ // m_context.displayItemList()->add(FloatClipDisplayItem::create(m_client, m_clipType, clipRect));
+ //} else {
+ // FloatClipDisplayItem clipDisplayItem(m_client, m_clipType, clipRect);
+ // clipDisplayItem.replay(m_context);
+ //}
}
FloatClipRecorder::~FloatClipRecorder()
{
- DisplayItem::Type endType = DisplayItem::floatClipTypeToEndFloatClipType(m_clipType);
- 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(EndFloatClipDisplayItem::create(m_client, endType));
- }
- } else {
- EndFloatClipDisplayItem endClipDisplayItem(m_client, endType);
- endClipDisplayItem.replay(m_context);
- }
+ //DisplayItem::Type endType = DisplayItem::floatClipTypeToEndFloatClipType(m_clipType);
+ //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(EndFloatClipDisplayItem::create(m_client, endType));
+ // }
+ //} else {
+ // EndFloatClipDisplayItem endClipDisplayItem(m_client, endType);
+ // endClipDisplayItem.replay(m_context);
+ //}
}
} // namespace blink
« no previous file with comments | « Source/core/paint/FilterPainter.cpp ('k') | Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698