Default way of warming up Skia shader compilations.
The draw operations being warmed up here are decided according to Flutter engineers' observation and experience based on the apps and the performance issues seen so far.
- canvasSize → Size
Value that returned by this.size to control canvas size where draws happen.
- drawCallSpacing → double
Constant that can be used to space out draw calls for visualizing the draws
for debugging purposes (example: 80.0). Be sure to also change your canvas
- size → Size
The size of the warm up image. [...]
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
Canvas canvas) → Future< void>
Trigger common draw operations on a canvas to warm up GPU shader
) → Future< void>
Construct an offscreen image of size, and execute warmUpOnCanvas on a
canvas associated with that image.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.