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 device:(nonnull
id<MTLDevice>)device;
32 @property(readonly, nonatomic, nonnull) IOSurfaceRef ioSurface;
33 @property(readonly, nonatomic) CGSize size;
34 @property(readonly, nonatomic) int64_t textureId;
36 @property(readonly, nonatomic) BOOL isInUse;
41 @property(readwrite, nonatomic) BOOL isInUseOverride;
44 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACE_H_