You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Canvas: fix translate and concat incorrectly being stubbed despite being implemented in GskCanvas, slight cleanup
This commit is contained in:
@@ -407,10 +407,6 @@ public class Canvas {
|
|||||||
gsk_canvas.drawPath(path, paint);
|
gsk_canvas.drawPath(path, paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipPath(Path path) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void restoreToCount(int count) {
|
public void restoreToCount(int count) {
|
||||||
gsk_canvas.snapshot = bitmap.getSnapshot();
|
gsk_canvas.snapshot = bitmap.getSnapshot();
|
||||||
gsk_canvas.restoreToCount(count);
|
gsk_canvas.restoreToCount(count);
|
||||||
@@ -435,7 +431,8 @@ public class Canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void translate(float dx, float dy) {
|
public void translate(float dx, float dy) {
|
||||||
Log.w("Canvas", "STUB: translate");
|
gsk_canvas.snapshot = bitmap.getSnapshot();
|
||||||
|
gsk_canvas.translate(dx, dy);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void drawCircle(float cx, float cy, float radius, Paint paint) {
|
public void drawCircle(float cx, float cy, float radius, Paint paint) {
|
||||||
@@ -449,16 +446,9 @@ public class Canvas {
|
|||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(Rect rect, Region.Op op) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void concat(Matrix matrix) {
|
public void concat(Matrix matrix) {
|
||||||
Log.w("Canvas", "STUB: concat");
|
gsk_canvas.snapshot = bitmap.getSnapshot();
|
||||||
}
|
gsk_canvas.concat(matrix);
|
||||||
|
|
||||||
public boolean clipPath(Path path, Region.Op op) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getWidth() {
|
public int getWidth() {
|
||||||
@@ -489,15 +479,12 @@ public class Canvas {
|
|||||||
Log.w("Canvas", "STUB: drawOval");
|
Log.w("Canvas", "STUB: drawOval");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(int left, int top, int right, int bottom) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void drawColor(int color, PorterDuff.Mode mode) {
|
public void drawColor(int color, PorterDuff.Mode mode) {
|
||||||
Log.w("Canvas", "STUB: drawColor("+String.format("0x%08x", color)+", "+mode+")");
|
Log.w("Canvas", "STUB: drawColor("+String.format("0x%08x", color)+", "+mode+")");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(Rect rect) {
|
public boolean clipRect(int left, int top, int right, int bottom) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -505,19 +492,42 @@ public class Canvas {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean clipRect(Rect rect) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean clipRect(Rect rect, Region.Op op) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean clipPath(Path path) {
|
||||||
|
Log.w("Canvas", "STUB: clipPath");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean clipPath(Path path, Region.Op op) {
|
||||||
|
Log.w("Canvas", "STUB: clipPath");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isHardwareAccelerated() {
|
public boolean isHardwareAccelerated() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(RectF rect) {
|
public boolean clipRect(RectF rect) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) {
|
public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean clipRect(RectF rect, Region.Op op) {
|
public boolean clipRect(RectF rect, Region.Op op) {
|
||||||
|
Log.w("Canvas", "STUB: clipRect");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user