diff options
author | 2015-02-12 12:08:40 -0800 | |
---|---|---|
committer | 2015-02-12 12:08:40 -0800 | |
commit | 90b5c0ced0e7ecc8812509d4c6c8017b1d08308f (patch) | |
tree | 0ef8a482b1131130a02ff4c8861b7a2de971eec0 /include | |
parent | 8bce2449e7d332d954523f6a55995ab9e3297ce1 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPath.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index c4606cf9ea..61b1ce474a 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 |