Expand description
All Sk* types are accessible via skia_safe::
Modules§
Enums§
- ContentChangeMode members are parameters to
Surface::notify_content_will_change()
.
Type Aliases§
Surface
is responsible for managing the pixels that a canvas draws into. The pixels can be allocated either in CPU memory (a raster surface) or on the GPU (aRenderTarget
surface).Surface
takes care of allocating aCanvas
that will draw into the surface. Callsurface_get_canvas()
to use that canvas (but don’t delete it, it is owned by the surface).Surface
always has non-zero dimensions. If there is a request for a new surface, and either of the requested dimensions are zero, thenNone
will be returned.