| Index: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
|
| index 3adc83ad15ed0cf2f60aba508d434c8df38f0206..2e1ea2c6305f92751934f61520d41c3f403afee8 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
|
| @@ -7,6 +7,7 @@
|
| #include "platform/graphics/GraphicsContext.h"
|
| #include "platform/graphics/Path.h"
|
| #include "public/platform/WebDisplayItemList.h"
|
| +#include "third_party/skia/include/core/SkPictureAnalyzer.h"
|
| #include "third_party/skia/include/core/SkScalar.h"
|
|
|
| namespace blink {
|
| @@ -22,6 +23,11 @@ void BeginClipPathDisplayItem::appendToWebDisplayItemList(const IntRect& visualR
|
| list->appendClipPathItem(visualRect, m_clipPath, SkRegion::kIntersect_Op, true);
|
| }
|
|
|
| +void BeginClipPathDisplayItem::analyzeForGpuRasterization(SkPictureGpuAnalyzer& analyzer) const
|
| +{
|
| + analyzer.analyzeClipPath(m_clipPath, SkRegion::kIntersect_Op, true);
|
| +}
|
| +
|
| void EndClipPathDisplayItem::replay(GraphicsContext& context) const
|
| {
|
| context.restore();
|
|
|