MCPcopy Create free account
hub / github.com/HumbleUI/Skija / getLocalToDevice

Method getLocalToDevice

shared/java/Canvas.java:1144–1154  ·  view source on GitHub ↗

Returns the total transformation matrix for the canvas.

()

Source from the content-addressed store, hash-verified

1142 * Returns the total transformation matrix for the canvas.
1143 */
1144 @NotNull @Contract("-> new")
1145 public Matrix44 getLocalToDevice() {
1146 try {
1147 assert _ptr != 0 : "Canvas is closed";
1148 Stats.onNativeCall();
1149 float[] mat = _nGetLocalToDevice(_ptr);
1150 return new Matrix44(mat);
1151 } finally {
1152 ReferenceUtil.reachabilityFence(this);
1153 }
1154 }
1155
1156 @NotNull @Contract("-> new")
1157 public Matrix33 getLocalToDeviceAsMatrix33() {

Calls 3

onNativeCallMethod · 0.95
_nGetLocalToDeviceMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected