diff options
| author | 2016-08-01 12:05:38 -0700 | |
|---|---|---|
| committer | 2016-08-01 12:05:38 -0700 | |
| commit | 19e710e7b568fc3434025b6cb36a6ea81a4a25da (patch) | |
| tree | c122fecf903bb780c2c2592b892afd5f0c86ae5b | |
| parent | b49c45bb08e13584d67410815456a68198a3b2c2 (diff) | |
Expose Path.approximate()
It is a useful APIs that applications can benefit from for a
number of use cases. Since apps have currently no way of
inspecting the content of a path, this allows them to
perform interpolation along paths.
Change-Id: I79bcba38a0ed806c418ed25d36ea25af8721d9c1
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rw-r--r-- | graphics/java/android/graphics/Path.java | 1 |
4 files changed, 3 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index 778ef7b1d789..64838a4ef053 100644 --- a/api/current.txt +++ b/api/current.txt @@ -12295,6 +12295,7 @@ package android.graphics { method public void addRoundRect(float, float, float, float, float, float, android.graphics.Path.Direction); method public void addRoundRect(android.graphics.RectF, float[], android.graphics.Path.Direction); method public void addRoundRect(float, float, float, float, float[], android.graphics.Path.Direction); + method public float[] approximate(float); method public void arcTo(android.graphics.RectF, float, float, boolean); method public void arcTo(android.graphics.RectF, float, float); method public void arcTo(float, float, float, float, float, float, boolean); diff --git a/api/system-current.txt b/api/system-current.txt index b27c5f012978..c7a05b2cd826 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -12726,6 +12726,7 @@ package android.graphics { method public void addRoundRect(float, float, float, float, float, float, android.graphics.Path.Direction); method public void addRoundRect(android.graphics.RectF, float[], android.graphics.Path.Direction); method public void addRoundRect(float, float, float, float, float[], android.graphics.Path.Direction); + method public float[] approximate(float); method public void arcTo(android.graphics.RectF, float, float, boolean); method public void arcTo(android.graphics.RectF, float, float); method public void arcTo(float, float, float, float, float, float, boolean); diff --git a/api/test-current.txt b/api/test-current.txt index 9bb1a7dc7182..881d290536c5 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -12309,6 +12309,7 @@ package android.graphics { method public void addRoundRect(float, float, float, float, float, float, android.graphics.Path.Direction); method public void addRoundRect(android.graphics.RectF, float[], android.graphics.Path.Direction); method public void addRoundRect(float, float, float, float, float[], android.graphics.Path.Direction); + method public float[] approximate(float); method public void arcTo(android.graphics.RectF, float, float, boolean); method public void arcTo(android.graphics.RectF, float, float); method public void arcTo(float, float, float, float, float, float, boolean); diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java index be31bbe0c086..2294b862192d 100644 --- a/graphics/java/android/graphics/Path.java +++ b/graphics/java/android/graphics/Path.java @@ -800,7 +800,6 @@ public class Path { * Path. Typically this would be 0.5 so that * the error is less than half a pixel. * @return An array of components for points approximating the Path. - * @hide */ public float[] approximate(float acceptableError) { return native_approximate(mNativePath, acceptableError); |