Merge "Deprecate Path#isConvex"

This commit is contained in:
Leon Scroggins
2020-01-29 18:10:14 +00:00
committed by Android (Google) Code Review
4 changed files with 8 additions and 10 deletions

View File

@@ -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);
}