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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.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/platform/graphics/paint/ClipRecorder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
index fc7f9cbb3e99b172150ab947a138dce7ba89dfa6..0ae75bd2d4e32cc0c1cb5c7e79c47361606bd483 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
@@ -15,11 +15,15 @@ ClipRecorder::ClipRecorder(GraphicsContext& context,
DisplayItem::Type type,
const IntRect& clipRect)
: m_client(client), m_context(context), m_type(type) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().createAndAppend<ClipDisplayItem>(
m_client, type, clipRect);
}
ClipRecorder::~ClipRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().endItem<EndClipDisplayItem>(
m_client, DisplayItem::clipTypeToEndClipType(m_type));
}

Powered by Google App Engine
This is Rietveld 408576698