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

Unified Diff: third_party/WebKit/Source/core/paint/TransformRecorder.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/TransformRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/TransformRecorder.cpp b/third_party/WebKit/Source/core/paint/TransformRecorder.cpp
index 7afe4684a7ddd7b0916bb145602719dcc4fcac87..a6950cebbef4647c9079effde6feb77cbd96af5e 100644
--- a/third_party/WebKit/Source/core/paint/TransformRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/TransformRecorder.cpp
@@ -14,6 +14,8 @@ TransformRecorder::TransformRecorder(GraphicsContext& context,
const DisplayItemClient& client,
const AffineTransform& transform)
: m_context(context), m_client(client) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_skipRecordingForIdentityTransform = transform.isIdentity();
if (m_skipRecordingForIdentityTransform)
@@ -24,6 +26,8 @@ TransformRecorder::TransformRecorder(GraphicsContext& context,
}
TransformRecorder::~TransformRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
if (m_skipRecordingForIdentityTransform)
return;

Powered by Google App Engine
This is Rietveld 408576698