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
api-impl: misc stubs and trivial impls
This commit is contained in:
@@ -112,6 +112,10 @@ public class Path {
|
||||
native_rel_quad_to(getBuilder(), x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
public void addArc (RectF oval, float startAngle, float sweepAngle) {}
|
||||
|
||||
public void addArc (float left, float top, float right, float bottom, float startAngle, float sweepAngle) {}
|
||||
|
||||
public void addPath(Path path, Matrix matrix) {
|
||||
native_add_path(getBuilder(), path.getGskPath(), matrix.ni());
|
||||
}
|
||||
@@ -153,6 +157,13 @@ public class Path {
|
||||
path = 0;
|
||||
}
|
||||
|
||||
public void transform(Matrix matrix, Path out_path) {
|
||||
if(out_path == null)
|
||||
out_path = this;
|
||||
|
||||
out_path.transform(matrix);
|
||||
}
|
||||
|
||||
public void computeBounds(RectF bounds, boolean exact) {
|
||||
native_get_bounds(getGskPath(), bounds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user