diff options
| author | 2023-10-11 17:52:00 +0000 | |
|---|---|---|
| committer | 2023-10-12 15:40:37 +0000 | |
| commit | e0b8a315dd6a4efae7334458a61a2a1dd32fde61 (patch) | |
| tree | f7b3b54f1d7beb371c2f4114cc21c748596c3d95 /graphics/java/android | |
| parent | 7a7407747ddb8bc881ac240b0b9c6b8c61308af3 (diff) | |
Add a flag to a previous API change.
This was changed recently b/216813597 and at that point it should have
been behind a flag.
Bug: 304478551
Test: it builds fine?
Change-Id: I21912cc463632ec867b50c7100b6a50222d9f771
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/framework_graphics.aconfig | 8 | ||||
| -rw-r--r-- | graphics/java/android/graphics/Path.java | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/graphics/java/android/framework_graphics.aconfig b/graphics/java/android/framework_graphics.aconfig new file mode 100644 index 000000000000..e030dad6bf14 --- /dev/null +++ b/graphics/java/android/framework_graphics.aconfig @@ -0,0 +1,8 @@ +package: "com.android.graphics.flags" + +flag { + name: "exact_compute_bounds" + namespace: "framework_graphics" + description: "Add a function without unused exact param for computeBounds." + bug: "304478551" +}
\ No newline at end of file diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java index c9c1b23d874c..deb89faf3419 100644 --- a/graphics/java/android/graphics/Path.java +++ b/graphics/java/android/graphics/Path.java @@ -16,11 +16,14 @@ package android.graphics; +import android.annotation.FlaggedApi; import android.annotation.FloatRange; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Size; +import com.android.graphics.flags.Flags; + import dalvik.annotation.optimization.CriticalNative; import dalvik.annotation.optimization.FastNative; @@ -309,6 +312,7 @@ public class Path { * * @param bounds Returns the computed bounds of the path's control points. */ + @FlaggedApi(Flags.FLAG_EXACT_COMPUTE_BOUNDS) public void computeBounds(@NonNull RectF bounds) { nComputeBounds(mNativePath, bounds); } |