implement some APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-03-29 23:56:28 +01:00
parent 0352a307b9
commit 2f4cd3917f
36 changed files with 329 additions and 25 deletions

View File

@@ -402,6 +402,20 @@ public class Canvas {
public void drawCircle(float cx, float cy, float radius, Paint paint) {}
public Rect getClipBounds() {
return new Rect(0, 0, 10, 10);
}
public boolean clipRect(Rect rect, Region.Op op) {
return false;
}
public void concat(Matrix matrix) {}
public boolean clipPath(Path path, Region.Op op) {
return false;
}
private static native long native_canvas_from_bitmap(long pixbuf);
private static native void native_save(long skia_canvas, long widget);