Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4012)

Unified Diff: include/core/SkPath.h

Issue 913413004: Expose SkPathRef::unique through SkPath. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment and define Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPath.h
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index c4606cf9eae4beaaadcf69fe6001236d14cca359..61b1ce474abd466058b301e33a1dd0385672adf6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698