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.
virtual AndroidRenderingAPI RenderingApi() const
sk_sp< GrDirectContext > GetMainSkiaContext() const
Accessor for the Skia context associated with AndroidSurfaces and the raster thread.
virtual bool IsValid() const
void SetImpellerContext(const std::shared_ptr< impeller::Context > &impeller_context)
virtual std::shared_ptr< impeller::Context > GetImpellerContext() const
Accessor for the Impeller context associated with AndroidSurfaces and the raster thread.
virtual bool IsDynamicSelection() const
virtual void SetupImpellerContext()
Perform deferred setup for the impeller Context.
impeller::Flags impeller_flags
bool enable_surface_control