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

Unified Diff: third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp

Issue 2789533003: [SPv2] Stop recording paired display items (except for subsequence markers) (Closed)
Patch Set: none Created 3 years, 9 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: third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
index 8a05a8f500b379ed9c7fc176a2ded38f85dc9317..72c2c81e8cdda636885a1d5584b3e8ca14dbec5e 100644
--- a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
@@ -26,6 +26,8 @@ LayerClipRecorder::LayerClipRecorder(GraphicsContext& graphicsContext,
: m_graphicsContext(graphicsContext),
m_layoutObject(layoutObject),
m_clipType(clipType) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect());
Vector<FloatRoundedRect> roundedRects;
if (clipRoot && clipRect.hasRadius()) {
@@ -104,6 +106,8 @@ void LayerClipRecorder::collectRoundedRectClips(
}
LayerClipRecorder::~LayerClipRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_graphicsContext.getPaintController().endItem<EndClipDisplayItem>(
m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType));
}

Powered by Google App Engine
This is Rietveld 408576698