aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPath.h5
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