Trait for objects that need to handle rendering context loss and restoration.
Called when the rendering context has been lost.
The options.
The canvas holding the restored rendering context.
Called when the rendering context has been restored.
Trait for objects that need to handle rendering context loss and restoration.