| Index: third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
|
| index fc7f9cbb3e99b172150ab947a138dce7ba89dfa6..0ae75bd2d4e32cc0c1cb5c7e79c47361606bd483 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/ClipRecorder.cpp
|
| @@ -15,11 +15,15 @@ ClipRecorder::ClipRecorder(GraphicsContext& context,
|
| DisplayItem::Type type,
|
| const IntRect& clipRect)
|
| : m_client(client), m_context(context), m_type(type) {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| m_context.getPaintController().createAndAppend<ClipDisplayItem>(
|
| m_client, type, clipRect);
|
| }
|
|
|
| ClipRecorder::~ClipRecorder() {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| m_context.getPaintController().endItem<EndClipDisplayItem>(
|
| m_client, DisplayItem::clipTypeToEndClipType(m_type));
|
| }
|
|
|