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

Method drawPoint

shared/java/Canvas.java:142–150  ·  view source on GitHub ↗
(float x, float y, @NotNull Paint paint)

Source from the content-addressed store, hash-verified

140 }
141
142 @NotNull @Contract("_, _, _ -> this")
143 public Canvas drawPoint(float x, float y, @NotNull Paint paint) {
144 assert _ptr != 0 : "Canvas is closed";
145 assert paint != null : "Can’t drawPoint with paint == null";
146 Stats.onNativeCall();
147 _nDrawPoint(_ptr, x, y, Native.getPtr(paint));
148 ReferenceUtil.reachabilityFence(paint);
149 return this;
150 }
151
152 /**
153 * <p>Draws pts using clip, Matrix and Paint paint.</p>

Calls 4

onNativeCallMethod · 0.95
_nDrawPointMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected