[androidkit] fix parameter names for drawRect

Change-Id: Ieb8c7869654531c01e9000cc0a0af9f87822a2fb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/415762
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Auto-Submit: Jorge Betancourt <jmbetancourt@google.com>
This commit is contained in:
Jorge Betancourt 2021-06-04 15:56:51 -04:00 committed by Skia Commit-Bot
parent 681e409625
commit ed3c0ed9e4

View File

@ -55,8 +55,8 @@ public class Canvas {
nConcat16f(mNativeInstance, rowMajorMatrix);
}
public void drawRect(float left, float right, float top, float bottom, Paint paint) {
nDrawRect(mNativeInstance, left, right, top, bottom, paint.getNativeInstance());
public void drawRect(float left, float top, float right, float bottom, Paint paint) {
nDrawRect(mNativeInstance, left, top, right, bottom, paint.getNativeInstance());
}
public void drawColor(Color c) {
@ -106,7 +106,7 @@ public class Canvas {
private static native void nDrawColor(long nativeInstance, float r, float g, float b, float a);
private static native void nDrawRect(long nativeInstance,
float left, float right, float top, float bottom,
float left, float top, float right, float bottom,
long nativePaint);
private static native void nDrawImage(long nativeInstance, long nativeImage, float x, float y,
int samplingDesc,