From 6a0cdd24df52283d5e22157f3ddc8a35671ea2d4 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Thu, 23 Jan 2020 12:41:08 -0500 Subject: 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 --- graphics/java/android/graphics/Path.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'graphics/java') 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); } -- cgit v1.2.3-59-g8ed1b