#include <FlutterDarwinContextMetalSkia.h>
Instance Methods | |
| (instancetype) | - initWithDefaultMTLDevice |
| (instancetype) | - initWithMTLDevice:commandQueue: |
| (FlutterDarwinExternalTextureMetal *) | - createExternalTextureWithIdentifier:texture: |
Class Methods | |
| (sk_sp< GrDirectContext >) | + createGrContext:commandQueue: |
Properties | |
| id< MTLDevice > | device |
| id< MTLCommandQueue > | commandQueue |
| sk_sp< GrDirectContext > | mainContext |
| sk_sp< GrDirectContext > | resourceContext |
| CVMetalTextureCacheRef | textureCache |
Provides skia GrContexts that are shared between iOS and macOS embeddings.
Definition at line 23 of file FlutterDarwinContextMetalSkia.h.
| - (FlutterDarwinExternalTextureMetal *) createExternalTextureWithIdentifier: | (int64_t) | textureID | |
| texture: | (NSObject<FlutterTexture>*) | texture | |
Creates an external texture with the specified ID and contents.
Definition at line 18 of file FlutterDarwinContextMetalSkia.mm.
| + (sk_sp< GrDirectContext >) createGrContext: | (id<MTLDevice>) | device | |
| commandQueue: | (id<MTLCommandQueue>) | commandQueue | |
Creates a GrDirectContext with the provided MTLDevice and MTLCommandQueue.
Definition at line 18 of file FlutterDarwinContextMetalSkia.mm.
| - (instancetype) initWithDefaultMTLDevice |
Initializes a FlutterDarwinContextMetalSkia with the system default MTLDevice and a new MTLCommandQueue.
Definition at line 18 of file FlutterDarwinContextMetalSkia.mm.
| - (instancetype) initWithMTLDevice: | (id<MTLDevice>) | device | |
| commandQueue: | (id<MTLCommandQueue>) | commandQueue | |
Initializes a FlutterDarwinContextMetalSkia with provided MTLDevice and MTLCommandQueue.
Definition at line 18 of file FlutterDarwinContextMetalSkia.mm.
|
readnonatomicassign |
MTLCommandQueue that is acquired from the device. This queue is used both for rendering and resource related commands.
Definition at line 59 of file FlutterDarwinContextMetalSkia.h.
|
readnonatomicassign |
MTLDevice that is backing this context.s
Definition at line 53 of file FlutterDarwinContextMetalSkia.h.
Referenced by flutter::testing::ShellTestPlatformViewMetal::ShellTestPlatformViewMetal().
|
readnonatomicassign |
Skia GrContext that is used for rendering.
Definition at line 64 of file FlutterDarwinContextMetalSkia.h.
Referenced by flutter::testing::ShellTestPlatformViewMetal::ShellTestPlatformViewMetal(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
|
readnonatomicassign |
Skia GrContext that is used for resources (uploading textures etc).
Definition at line 69 of file FlutterDarwinContextMetalSkia.h.
|
readnonatomicassign |
Definition at line 74 of file FlutterDarwinContextMetalSkia.h.