Manages the lifetime of the on-screen and off-screen rendering contexts on iOS. On-screen contexts ar...
virtual std::unique_ptr< GLContextResult > MakeCurrent()=0
When using client rendering APIs whose contexts need to be bound to a specific thread,...
virtual sk_sp< GrDirectContext > GetMainContext() const =0
Accessor for the Skia context associated with IOSSurfaces and the raster thread.
virtual std::unique_ptr< Texture > CreateExternalTexture(int64_t texture_id, NSObject< FlutterTexture > *texture)=0
Creates an external texture proxy of the appropriate client rendering API.
virtual std::shared_ptr< impeller::Context > GetImpellerContext() const
static std::unique_ptr< IOSContext > Create(IOSRenderingAPI api, IOSRenderingBackend backend, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)
Create an iOS context object capable of creating the on-screen and off-screen GPU context for use by ...
virtual ~IOSContext()
Collects the context object. This must happen on the thread on which this object was created.
virtual sk_sp< GrDirectContext > CreateResourceContext()=0
Create a resource context for use on the IO task runner. This resource context is used by Skia to upl...
virtual IOSRenderingBackend GetBackend() const
Get the rendering backend used by this context.
virtual std::shared_ptr< impeller::AiksContext > GetAiksContext() const