Expand description
Drawing related code for Layer, Scene, and Text. The functions in this module are used to draw into a Skia canvas independent from the backend
Structs§
- A backdrop image handed to
BackgroundBlurlayers that render into isolated buffers (e.g. KMS planes) and therefore can’t see the content behind them.
Functions§
- Drop every cached blurred backdrop on this thread — for a render context that is being torn down, whose images must not outlive it.
- Draw a layer into a skia::Canvas. Returns the damage rect in the layer’s coordinate space.
- Draw the scene to the given skia::Canvas
- How many node surfaces are cached, and their size in bytes (RGBA8).
- paint a node and his subtree in the provided canvas
- Print the node tree to the console
- Render a node and his subtree in the provided canvas taking care of the image caching if needed
- The tone map applied to a blurred backdrop, built once per thread.