#include <ios_context_metal_impeller.h>
|
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) |
|
◆ IOSContextMetalImpeller()
flutter::IOSContextMetalImpeller::IOSContextMetalImpeller |
( |
const std::shared_ptr< const fml::SyncSwitch > & |
is_gpu_disabled_sync_switch | ) |
|
|
explicit |
◆ ~IOSContextMetalImpeller()
flutter::IOSContextMetalImpeller::~IOSContextMetalImpeller |
( |
| ) |
|
◆ GetBackend()
Get the rendering backend used by this context.
- Returns
- The rendering backend.
Reimplemented from flutter::IOSContext.
◆ GetDarwinContext()
fml::scoped_nsobject<FlutterDarwinContextMetalSkia> flutter::IOSContextMetalImpeller::GetDarwinContext |
( |
| ) |
const |
◆ GetMainContext()
sk_sp<GrDirectContext> flutter::IOSContextMetalImpeller::GetMainContext |
( |
| ) |
const |
|
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.
- Returns
nullptr
on failure.
- Attention
- The software context doesn't have a Skia context, so this value will be nullptr.
- See also
- For contexts which are used for offscreen work like loading textures see IOSContext::CreateResourceContext.
Implements flutter::IOSContext.
◆ GetResourceContext()
sk_sp<GrDirectContext> flutter::IOSContextMetalImpeller::GetResourceContext |
( |
| ) |
const |
The documentation for this class was generated from the following file: