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

Method getRecordingContext

shared/java/Surface.java:642–651  ·  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

640 * @return the recording context, if available; null otherwise
641 */
642 @Nullable
643 public DirectContext getRecordingContext() {
644 try {
645 Stats.onNativeCall();
646 long ptr = _nGetRecordingContext(_ptr);
647 return ptr == 0 ? null : new DirectContext(ptr);
648 } finally {
649 ReferenceUtil.reachabilityFence(this);
650 }
651 }
652
653 /**
654 * <p>Returns Canvas that draws into Surface.</p>

Callers 1

executeMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nGetRecordingContextMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

executeMethod · 0.64