PictureRecorder
Functions
Returns the canvas that records the drawing commands.
Signal that the caller is done recording. This invalidates the canvas returned by .beginRecording/.getRecordingCanvas.
Signal that the caller is done recording, and update the cull rect to use for bounding box hierarchy (BBH) generation. The behavior is the same as calling .finishRecordingAsPicture, except that this method updates the cull rect initially passed into .beginRecording.
Finalizes the recording of the drawing commands and creates an immutable picture object that encapsulates the recorded content. The cull rect provided defines the boundaries for the recorded content and can be used for bounding box hierarchy (BBH) generation and subsequent culling operations. After this call, the canvas returned by any beginRecording or getRecordingCanvas method becomes invalid.