Merge "Make Canvas#drawPatch public"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0cee43934
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user