User-defined factory to provide your own surface implementation.
The library uses this to create/destroy Surface instances when rendering Views on the CPU.
- Precondition
- This is automatically managed for you when using App::Create(), if you want to override Surface or SurfaceFactory, you'll need to use Renderer::Create() instead.
Setting the Surface Factory
The default factory creates/destroys a BitmapSurface but you can override this by providing your own factory to Platform::set_surface_factory().