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

Method getRecordingContext

shared/java/Surface.java:563–572  ·  view source on GitHub ↗

Returns the recording context being used by the Surface. @return the recording context, if available; null otherwise

()

Source from the content-addressed store, hash-verified

561 * @return the recording context, if available; null otherwise
562 */
563 @Nullable
564 public DirectContext getRecordingContext() {
565 try {
566 Stats.onNativeCall();
567 long ptr = _nGetRecordingContext(_ptr);
568 return ptr == 0 ? null : new DirectContext(ptr);
569 } finally {
570 Reference.reachabilityFence(this);
571 }
572 }
573
574 /**
575 * <p>Returns Canvas that draws into Surface.</p>

Callers 1

executeMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nGetRecordingContextMethod · 0.95

Tested by 1

executeMethod · 0.64