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
()
| 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 |
no test coverage detected