DefaultShaderWarmUp class Null safety
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.
This is used for the default value of PaintingBinding.shaderWarmUp. Consider setting that static property to a different value before the binding is initialized to change the warm-up sequence.
- canvasSize → Size
The size of the canvas required to paint the shapes in warmUpOnCanvas. [...]
- drawCallSpacing → double
Distance to place between draw calls for visualizing the draws for
debugging purposes (e.g. 80.0). [...]
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
- size → Size
The size of the warm up image. [...]
) → 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
A string representation of this object. [...]
Canvas canvas) → Future< void>
Trigger common draw operations on a canvas to warm up GPU shader