Holds state that is shared across Android surfaces.
virtual ~AndroidContext()
void SetMainSkiaContext(const sk_sp< GrDirectContext > &main_context)
Setter for the Skia context to be used by subsequent AndroidSurfaces.
AndroidRenderingAPI RenderingApi() const
sk_sp< GrDirectContext > GetMainSkiaContext() const
Accessor for the Skia context associated with AndroidSurfaces and the raster thread.
AndroidContext(AndroidRenderingAPI rendering_api)
virtual bool IsValid() const
void SetImpellerContext(const std::shared_ptr< impeller::Context > &context)
std::shared_ptr< impeller::Context > GetImpellerContext() const
Accessor for the Impeller context associated with AndroidSurfaces and the raster thread.