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

Unified Diff: third_party/WebKit/Source/core/paint/FloatClipRecorder.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/FloatClipRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/FloatClipRecorder.cpp b/third_party/WebKit/Source/core/paint/FloatClipRecorder.cpp
index 663bc9cc46f1e003e464f7dd6b4fef4def94e294..ee03d061fe394096caf26b3d7c33fbda1958a904 100644
--- a/third_party/WebKit/Source/core/paint/FloatClipRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/FloatClipRecorder.cpp
@@ -17,11 +17,15 @@ FloatClipRecorder::FloatClipRecorder(GraphicsContext& context,
: m_context(context),
m_client(client),
m_clipType(DisplayItem::paintPhaseToFloatClipType(paintPhase)) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().createAndAppend<FloatClipDisplayItem>(
m_client, m_clipType, clipRect);
}
FloatClipRecorder::~FloatClipRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
DisplayItem::Type endType =
DisplayItem::floatClipTypeToEndFloatClipType(m_clipType);
m_context.getPaintController().endItem<EndFloatClipDisplayItem>(m_client,
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipPathClipper.cpp ('k') | third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698