From 90b5c0ced0e7ecc8812509d4c6c8017b1d08308f Mon Sep 17 00:00:00 2001 From: djsollen Date: Thu, 12 Feb 2015 12:08:40 -0800 Subject: [PATCH] Expose SkPathRef::unique through SkPath. This allows for the removal of SkPath::mSourcePath on Android as they now have a better indicator of whether or not the path can be used again via the Java API. Review URL: https://codereview.chromium.org/913413004 --- include/core/SkPath.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/core/SkPath.h b/include/core/SkPath.h index c4606cf..61b1ce4 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -42,6 +42,11 @@ public: return !(a == b); } +#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK + /** Returns true if the caller is the only owner of the underlying path data */ + bool unique() const { return fPathRef->unique(); } +#endif + enum FillType { /** Specifies that "inside" is computed by a non-zero sum of signed edge crossings -- 2.7.4