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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.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/ClipPathRecorder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
index caf1ca9a1f5fdbf7c633e9dd8fac44cbc8799a82..c8741e5674287d024ed585a6c935827b327215ad 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
@@ -14,11 +14,15 @@ ClipPathRecorder::ClipPathRecorder(GraphicsContext& context,
const DisplayItemClient& client,
const Path& clipPath)
: m_context(context), m_client(client) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().createAndAppend<BeginClipPathDisplayItem>(
m_client, clipPath);
}
ClipPathRecorder::~ClipPathRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().endItem<EndClipPathDisplayItem>(m_client);
}

Powered by Google App Engine
This is Rietveld 408576698