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

Unified Diff: Source/core/paint/LayerClipRecorder.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/FloatClipRecorder.cpp ('k') | Source/core/paint/LayerFixedPositionRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/LayerClipRecorder.cpp
diff --git a/Source/core/paint/LayerClipRecorder.cpp b/Source/core/paint/LayerClipRecorder.cpp
index 2d59a79773c626c7e3636569af983922dc7a2399..5af42ada61654fb480659457be22d4ba468bfae1 100644
--- a/Source/core/paint/LayerClipRecorder.cpp
+++ b/Source/core/paint/LayerClipRecorder.cpp
@@ -30,15 +30,19 @@ LayerClipRecorder::LayerClipRecorder(GraphicsContext& graphicsContext, const Lay
collectRoundedRectClips(*layoutObject.layer(), *localPaintingInfo, graphicsContext, fragmentOffset, paintFlags, rule, *roundedRects);
}
- OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, clipType, snappedClipRect, roundedRects.release());
- if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- clipDisplayItem->replay(graphicsContext);
- } else {
- ASSERT(m_graphicsContext.displayItemList());
- if (m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled())
- return;
- m_graphicsContext.displayItemList()->add(clipDisplayItem.release());
- }
+ ALLOW_UNUSED_LOCAL(m_clipType);
+ ALLOW_UNUSED_LOCAL(snappedClipRect);
+ ALLOW_UNUSED_LOCAL(m_layoutObject);
+ ALLOW_UNUSED_LOCAL(m_graphicsContext);
+ //OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, clipType, snappedClipRect, roundedRects.release());
+ //if (!RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // clipDisplayItem->replay(graphicsContext);
+ //} else {
+ // ASSERT(m_graphicsContext.displayItemList());
+ // if (m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled())
+ // return;
+ // m_graphicsContext.displayItemList()->add(clipDisplayItem.release());
+ //}
}
static bool inContainingBlockChain(DeprecatedPaintLayer* startLayer, DeprecatedPaintLayer* endLayer)
@@ -82,17 +86,17 @@ void LayerClipRecorder::collectRoundedRectClips(DeprecatedPaintLayer& paintLayer
LayerClipRecorder::~LayerClipRecorder()
{
- if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
- ASSERT(m_graphicsContext.displayItemList());
- if (!m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled()) {
- if (m_graphicsContext.displayItemList()->lastDisplayItemIsNoopBegin())
- m_graphicsContext.displayItemList()->removeLastDisplayItem();
- else
- m_graphicsContext.displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType)));
- }
- } else {
- m_graphicsContext.restore();
- }
+ //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
+ // ASSERT(m_graphicsContext.displayItemList());
+ // if (!m_graphicsContext.displayItemList()->displayItemConstructionIsDisabled()) {
+ // if (m_graphicsContext.displayItemList()->lastDisplayItemIsNoopBegin())
+ // m_graphicsContext.displayItemList()->removeLastDisplayItem();
+ // else
+ // m_graphicsContext.displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType)));
+ // }
+ //} else {
+ // m_graphicsContext.restore();
+ //}
}
} // namespace blink
« no previous file with comments | « Source/core/paint/FloatClipRecorder.cpp ('k') | Source/core/paint/LayerFixedPositionRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698