5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACE_H_
8 #import <Cocoa/Cocoa.h>
10 #import "flutter/shell/platform/embedder/embedder.h"
20 + (nullable
FlutterSurface*)fromFlutterMetalTexture:(nonnull const FlutterMetalTexture*)texture;
30 - (nonnull instancetype)initWithSize:(CGSize)size
31 device:(nonnull
id<MTLDevice>)device
32 enableWideGamut:(BOOL)enableWideGamut;
34 @property(readonly, nonatomic, nonnull) IOSurfaceRef ioSurface;
35 @property(readonly, nonatomic) CGSize size;
36 @property(readonly, nonatomic) int64_t textureId;
38 @property(readonly, nonatomic) BOOL isInUse;
40 @property(readonly, nonatomic) BOOL isWideGamut;
45 @property(readwrite, nonatomic) BOOL isInUseOverride;
FlutterMetalTexture asFlutterMetalTexture()