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

Method finishRecordingAsPicture

shared/java/PictureRecorder.java:63–73  ·  view source on GitHub ↗

Signal that the caller is done recording. This invalidates the canvas returned by #beginRecording(Rect)/#getRecordingCanvas(). The returned picture is immutable. If during recording drawables were added to the canvas, these will have been "drawn" into a recording canvas, s

()

Source from the content-addressed store, hash-verified

61 * themselves.</p>
62 */
63 public Picture finishRecordingAsPicture() {
64 try {
65 assert _canvas != null : "Recording not started";
66 _canvas.invalidate();
67 _canvas = null;
68 Stats.onNativeCall();
69 return new Picture(_nFinishRecordingAsPicture(_ptr));
70 } finally {
71 ReferenceUtil.reachabilityFence(this);
72 }
73 }
74
75 /**
76 * Signal that the caller is done recording, and update the cull rect to use for bounding

Calls 5

onNativeCallMethod · 0.95
reachabilityFenceMethod · 0.95
invalidateMethod · 0.45

Tested by

no test coverage detected