| 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));
|
| }
|
|
|