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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.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/CompositingRecorder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
index fbbbd00c3ba3e876b2f745e84678b92d738c42f4..086733692eb86a7c76ed5890b410747438cbb8c0 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp
@@ -19,12 +19,16 @@ CompositingRecorder::CompositingRecorder(GraphicsContext& graphicsContext,
const FloatRect* bounds,
ColorFilter colorFilter)
: m_client(client), m_graphicsContext(graphicsContext) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
graphicsContext.getPaintController()
.createAndAppend<BeginCompositingDisplayItem>(m_client, xferMode, opacity,
bounds, colorFilter);
}
CompositingRecorder::~CompositingRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
// If the end of the current display list is of the form
// [BeginCompositingDisplayItem] [DrawingDisplayItem], then fold the
// BeginCompositingDisplayItem into a new DrawingDisplayItem that replaces

Powered by Google App Engine
This is Rietveld 408576698