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

Unified Diff: Source/platform/graphics/paint/ClipRecorder.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
Index: Source/platform/graphics/paint/ClipRecorder.cpp
diff --git a/Source/platform/graphics/paint/ClipRecorder.cpp b/Source/platform/graphics/paint/ClipRecorder.cpp
index 32803581cf4ddde650911d04912d4b4089e3f510..ee5503057fd405b92d9aaffcfb0938556a121455 100644
--- a/Source/platform/graphics/paint/ClipRecorder.cpp
+++ b/Source/platform/graphics/paint/ClipRecorder.cpp
@@ -17,32 +17,35 @@ ClipRecorder::ClipRecorder(GraphicsContext& context, const DisplayItemClientWrap
, m_context(context)
, m_type(type)
{
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(m_context.displayItemList());
- if (m_context.displayItemList()->displayItemConstructionIsDisabled())
- return;
- m_context.displayItemList()->add(ClipDisplayItem::create(m_client, type, pixelSnappedIntRect(clipRect)));
- } else {
- ClipDisplayItem clipDisplayItem(m_client, type, pixelSnappedIntRect(clipRect));
- clipDisplayItem.replay(m_context);
- }
+ ALLOW_UNUSED_LOCAL(m_client);
+ ALLOW_UNUSED_LOCAL(m_context);
+ ALLOW_UNUSED_LOCAL(m_type);
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(m_context.displayItemList());
+ // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
+ // return;
+ // m_context.displayItemList()->add(ClipDisplayItem::create(m_client, type, pixelSnappedIntRect(clipRect)));
+ //} else {
+ // ClipDisplayItem clipDisplayItem(m_client, type, pixelSnappedIntRect(clipRect));
+ // clipDisplayItem.replay(m_context);
+ //}
}
ClipRecorder::~ClipRecorder()
{
- DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_type);
- 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(EndClipDisplayItem::create(m_client, endType));
- }
- } else {
- EndClipDisplayItem endClipDisplayItem(m_client, endType);
- endClipDisplayItem.replay(m_context);
- }
+ //DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_type);
+ //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(EndClipDisplayItem::create(m_client, endType));
+ // }
+ //} else {
+ // EndClipDisplayItem endClipDisplayItem(m_client, endType);
+ // endClipDisplayItem.replay(m_context);
+ //}
}
} // namespace blink
« no previous file with comments | « Source/platform/graphics/paint/ClipPathRecorder.cpp ('k') | Source/platform/graphics/paint/CompositingDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698