summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-01-23 12:41:08 -0500
committerLeon Scroggins III <scroggo@google.com>2020-01-23 12:41:08 -0500
commit6a0cdd24df52283d5e22157f3ddc8a35671ea2d4 (patch)
treef832557ade9f070b9da6f2d1cbb44185ff912f25 /graphics/java
parent6e62dbb263eace8451d3acb1964ee6b1dbd6ace9 (diff)
Deprecate Path#isConvex
Bug: 133807397 Test: No change in behavior, no new tests isConvex is unreliable. We may change how we compute it from release to release, and it could change based on various factors like a rotation. Change-Id: Ib76246fc24f09bd13cf63b4b96b56afa613d0bc9
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);
}