| Index: Source/platform/graphics/paint/ClipDisplayItem.h
|
| diff --git a/Source/platform/graphics/paint/ClipDisplayItem.h b/Source/platform/graphics/paint/ClipDisplayItem.h
|
| index 856269fa70d6449a134ee07f078ec8c3dfff7bfe..28b04d6cd55c3945ef5d78d3789ae833c8f453aa 100644
|
| --- a/Source/platform/graphics/paint/ClipDisplayItem.h
|
| +++ b/Source/platform/graphics/paint/ClipDisplayItem.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef ClipDisplayItem_h
|
| #define ClipDisplayItem_h
|
|
|
| +#include "SkRegion.h"
|
| #include "platform/PlatformExport.h"
|
| #include "platform/geometry/IntRect.h"
|
| #include "platform/graphics/paint/DisplayItem.h"
|
| @@ -16,8 +17,8 @@ class RoundedRect;
|
|
|
| class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem {
|
| public:
|
| - ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect)
|
| - : DisplayItem(client, type), m_clipRect(clipRect) { }
|
| + ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect, SkRegion::Op operation = SkRegion::kIntersect_Op)
|
| + : DisplayItem(client, type), m_clipRect(clipRect), m_operation(operation) { }
|
|
|
| virtual void replay(GraphicsContext*) override;
|
|
|
| @@ -26,6 +27,7 @@ public:
|
| private:
|
| IntRect m_clipRect;
|
| Vector<RoundedRect> m_roundedRectClips;
|
| + SkRegion::Op m_operation;
|
| #ifndef NDEBUG
|
| virtual WTF::String asDebugString() const override;
|
| #endif
|
|
|