| 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,
|
|
|