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

Unified Diff: third_party/WebKit/Source/core/paint/ScrollRecorder.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/ScrollRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
index 5d788de3eb3a19f4f97b34374cee44859d296d34..fc34ced0c2f38b1aa83929a0ad3524e4aebd950a 100644
--- a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
@@ -15,6 +15,8 @@ ScrollRecorder::ScrollRecorder(GraphicsContext& context,
DisplayItem::Type type,
const IntSize& currentOffset)
: m_client(client), m_beginItemType(type), m_context(context) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().createAndAppend<BeginScrollDisplayItem>(
m_client, m_beginItemType, currentOffset);
}
@@ -29,6 +31,8 @@ ScrollRecorder::ScrollRecorder(GraphicsContext& context,
currentOffset) {}
ScrollRecorder::~ScrollRecorder() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
m_context.getPaintController().endItem<EndScrollDisplayItem>(
m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType));
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | third_party/WebKit/Source/core/paint/Transform3DRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698