5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACEMANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACEMANAGER_H_
8 #import <Cocoa/Cocoa.h>
9 #import <QuartzCore/QuartzCore.h>
21 @property(readwrite, nonatomic) CGPoint
offset;
22 @property(readwrite, nonatomic)
size_t zIndex;
23 @property(readwrite, nonatomic) std::vector<FlutterRect>
paintRegion;
34 - (void)onPresent:(CGSize)frameSize withBlock:(nonnull dispatch_block_t)block;
50 - (nullable instancetype)initWithDevice:(nonnull
id<MTLDevice>)device
51 commandQueue:(nonnull
id<MTLCommandQueue>)commandQueue
52 layer:(nonnull CALayer*)containingLayer
73 atTime:(CFTimeInterval)presentationTime
74 notify:(nullable dispatch_block_t)notify;
91 - (void)returnSurfaces:(nonnull NSArray<
FlutterSurface*>*)surfaces;
106 @property(readonly, nonatomic, nonnull) NSArray<FlutterSurface*>* frontSurfaces;
107 @property(readonly, nonatomic, nonnull) NSArray<CALayer*>* layers;
111 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERSURFACEMANAGER_H_