summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2020-01-29 18:10:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-29 18:10:14 +0000
commite98ae477cca12478ce7956c4d03b7aa5fe2febdf (patch)
treee1b89b7286100f5a842df49fca28e2eb9c7abcd7 /graphics/java
parent715a1c654be8845f4e29370ad43e6a04a2a92bc7 (diff)
parent6a0cdd24df52283d5e22157f3ddc8a35671ea2d4 (diff)
Merge "Deprecate Path#isConvex"
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Path.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java
index 1362fd864d29..84fe39290681 100644
--- a/graphics/java/android/graphics/Path.java
+++ b/graphics/java/android/graphics/Path.java
@@ -209,7 +209,13 @@ public class Path {
* points, and cache the result.
*
* @return True if the path is convex.
+ *
+ * @deprecated This method is not reliable. The way convexity is computed may change from
+ * release to release, and convexity could change based on a matrix as well. This method was
+ * useful when non-convex Paths were unable to be used in certain contexts, but that is no
+ * longer the case.
*/
+ @Deprecated
public boolean isConvex() {
return nIsConvex(mNativePath);
}