Merge "Make Canvas#drawPatch public"

This commit is contained in:
Leon Scroggins
2020-05-06 20:33:55 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 6 deletions

View File

@@ -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 {

View File

@@ -1848,24 +1848,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);