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

Method detach

shared/java/PathBuilder.java:184–192  ·  view source on GitHub ↗

Returns an immutable Path representing the current state of the builder, and resets the builder to empty. This is more efficient than calling #snapshot() followed by #reset() if you don't need to preserve the builder state. @return immutable Path

()

Source from the content-addressed store, hash-verified

182 * @return immutable {@link Path}
183 */
184 @NotNull
185 public Path detach() {
186 try {
187 Stats.onNativeCall();
188 return new Path(_nDetach(_ptr, null));
189 } finally {
190 ReferenceUtil.reachabilityFence(this);
191 }
192 }
193
194 /**
195 * Returns an immutable Path representing the current state of the builder,

Callers 6

drawPathsMethod · 0.80
drawAddsMethod · 0.80
drawTransformsMethod · 0.80
drawMeasureMethod · 0.80
drawFillWithPaintMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nDetachMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected