diff --git a/api/current.txt b/api/current.txt index 0b717cd1fab03..6e8c657000537 100644 --- a/api/current.txt +++ b/api/current.txt @@ -14300,6 +14300,8 @@ package android.graphics { method public void drawOval(@NonNull android.graphics.RectF, @NonNull android.graphics.Paint); method public void drawOval(float, float, float, float, @NonNull android.graphics.Paint); method public void drawPaint(@NonNull android.graphics.Paint); + method public void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.Rect, @Nullable android.graphics.Paint); + method public void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.RectF, @Nullable android.graphics.Paint); method public void drawPath(@NonNull android.graphics.Path, @NonNull android.graphics.Paint); method public void drawPicture(@NonNull android.graphics.Picture); method public void drawPicture(@NonNull android.graphics.Picture, @NonNull android.graphics.RectF); @@ -15354,8 +15356,6 @@ package android.graphics { } public final class RecordingCanvas extends android.graphics.Canvas { - method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.Rect, @Nullable android.graphics.Paint); - method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.RectF, @Nullable android.graphics.Paint); } public final class Rect implements android.os.Parcelable { diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 37ba869a94e3f..be8a262899d3a 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -1873,24 +1873,22 @@ public class Canvas extends BaseCanvas { } /** - * Draws the specified bitmap as an N-patch (most often, a 9-patches.) + * Draws the specified bitmap as an N-patch (most often, a 9-patch.) * * @param patch The ninepatch object to render * @param dst The destination rectangle. * @param paint The paint to draw the bitmap with. may be null - * @hide */ public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { super.drawPatch(patch, dst, paint); } /** - * Draws the specified bitmap as an N-patch (most often, a 9-patches.) + * Draws the specified bitmap as an N-patch (most often, a 9-patch.) * * @param patch The ninepatch object to render * @param dst The destination rectangle. * @param paint The paint to draw the bitmap with. may be null - * @hide */ public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { super.drawPatch(patch, dst, paint);