#include <ios_context_metal_skia.h>
Public Member Functions | |
IOSContextMetalSkia (MsaaSampleCount msaa_samples) | |
~IOSContextMetalSkia () | |
fml::scoped_nsobject< FlutterDarwinContextMetalSkia > | GetDarwinContext () const |
IOSRenderingBackend | GetBackend () const override |
Get the rendering backend used by this context. More... | |
sk_sp< GrDirectContext > | GetMainContext () const override |
Accessor for the Skia context associated with IOSSurfaces and the raster thread. More... | |
sk_sp< GrDirectContext > | GetResourceContext () const |
![]() | |
virtual | ~IOSContext () |
Collects the context object. This must happen on the thread on which this object was created. More... | |
virtual std::shared_ptr< impeller::Context > | GetImpellerContext () const |
MsaaSampleCount | GetMsaaSampleCount () const |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< IOSContext > | Create (IOSRenderingAPI api, IOSRenderingBackend backend, MsaaSampleCount msaa_samples, 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 Skia. More... | |
![]() | |
IOSContext (MsaaSampleCount msaa_samples) | |
Definition at line 19 of file ios_context_metal_skia.h.
|
explicit |
Definition at line 15 of file ios_context_metal_skia.mm.
|
default |
|
overridevirtual |
Get the rendering backend used by this context.
Reimplemented from flutter::IOSContext.
Definition at line 26 of file ios_context_metal_skia.mm.
References flutter::kSkia.
fml::scoped_nsobject< FlutterDarwinContextMetalSkia > flutter::IOSContextMetalSkia::GetDarwinContext | ( | ) | const |
Definition at line 22 of file ios_context_metal_skia.mm.
|
overridevirtual |
Accessor for the Skia context associated with IOSSurfaces and the raster thread.
There can be any number of resource contexts but this is the one context that will be used by surfaces to draw to the screen from the raster thread.
nullptr
on failure. Implements flutter::IOSContext.
Definition at line 30 of file ios_context_metal_skia.mm.
sk_sp< GrDirectContext > flutter::IOSContextMetalSkia::GetResourceContext | ( | ) | const |
Definition at line 34 of file ios_context_metal_skia.mm.