| Index: third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| index caf1ca9a1f5fdbf7c633e9dd8fac44cbc8799a82..c8741e5674287d024ed585a6c935827b327215ad 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathRecorder.cpp
|
| @@ -14,11 +14,15 @@ ClipPathRecorder::ClipPathRecorder(GraphicsContext& context,
|
| const DisplayItemClient& client,
|
| const Path& clipPath)
|
| : m_context(context), m_client(client) {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| m_context.getPaintController().createAndAppend<BeginClipPathDisplayItem>(
|
| m_client, clipPath);
|
| }
|
|
|
| ClipPathRecorder::~ClipPathRecorder() {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| m_context.getPaintController().endItem<EndClipPathDisplayItem>(m_client);
|
| }
|
|
|
|
|