Returns a canvas on which to draw. When done drawing, call finishRecordingAsPicture()
a rect to cull the results.
OptionalcomputeBounds: booleanOptional boolean (default false) which tells the recorder to compute a more accurate bounds for the cullRect of the picture.
Returns the captured draw commands as a picture and invalidates the canvas returned earlier.
CanvasKit is built with Emscripten and Embind. Embind adds the following methods to all objects that are exposed with it. This _type field is necessary for the TypeScript compiler to differentiate between opaque types such as Shader and ColorFilter. It doesn't exist at runtime.