diff options
Diffstat (limited to 'experimental/svg/model/SkSVGRenderContext.h')
-rw-r--r-- | experimental/svg/model/SkSVGRenderContext.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGRenderContext.h b/experimental/svg/model/SkSVGRenderContext.h index ab046cd290..3cd38cbd7f 100644 --- a/experimental/svg/model/SkSVGRenderContext.h +++ b/experimental/svg/model/SkSVGRenderContext.h @@ -9,6 +9,7 @@ #define SkSVGRenderContext_DEFINED #include "SkPaint.h" +#include "SkPath.h" #include "SkRect.h" #include "SkSize.h" #include "SkSVGAttribute.h" @@ -79,6 +80,9 @@ public: const SkPaint* fillPaint() const; const SkPaint* strokePaint() const; + // The local computed clip path (not inherited). + const SkPath* clipPath() const { return fClipPath.getMaybeNull(); } + private: // Stack-only void* operator new(size_t) = delete; @@ -95,6 +99,9 @@ private: // The save count on 'fCanvas' at construction time. // A restoreToCount() will be issued on destruction. int fCanvasSaveCount; + + // clipPath, if present for the current context (not inherited). + SkTLazy<SkPath> fClipPath; }; #endif // SkSVGRenderContext_DEFINED |