MCPcopy Create free account
hub / github.com/JetBrains/skija / getCanvas

Method getCanvas

shared/java/Surface.java:582–591  ·  view source on GitHub ↗

Returns Canvas that draws into Surface. Subsequent calls return the same Canvas. Canvas returned is managed and owned by Surface, and is deleted when Surface is deleted. @return Canvas for Surface

()

Source from the content-addressed store, hash-verified

580 * @return Canvas for Surface
581 */
582 @NotNull
583 public Canvas getCanvas() {
584 try {
585 Stats.onNativeCall();
586 long ptr = _nGetCanvas(_ptr);
587 return ptr == 0 ? null : new Canvas(ptr, false, this);
588 } finally {
589 Reference.reachabilityFence(this);
590 }
591 }
592
593 /**
594 * <p>Returns a compatible Surface, or null.</p>

Callers 11

executeMethod · 0.80
drawSineMethod · 0.80
drawMethod · 0.80
createGraphicsMethod · 0.80
onPaintMethod · 0.80
beforePaintMethod · 0.80
beforePaintMethod · 0.80
initSkiaMethod · 0.80
mainMethod · 0.80
onResizeMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetCanvasMethod · 0.95

Tested by 1

executeMethod · 0.64