#import <FlutterSurfaceManager.h>
Instance Methods | |
(nullable FlutterSurface *) | - removeSurfaceForSize: |
(void) | - returnSurfaces: |
(NSUInteger) | - count |
Cache of back buffers to prevent unnecessary IOSurface allocations.
Definition at line 81 of file FlutterSurfaceManager.h.
- (NSUInteger) count |
Returns number of surfaces currently in cache. Used for tests.
Definition at line 352 of file FlutterSurfaceManager.mm.
Referenced by flutter::testing::TEST().
- (nullable FlutterSurface *) removeSurfaceForSize: | (CGSize) | size |
Removes surface with given size from cache (if available) and returns it.
Definition at line 301 of file FlutterSurfaceManager.mm.
References FlutterSurface::isInUse.
- (void) returnSurfaces: | (nonnull NSArray<FlutterSurface*>*) | surfaces |
Removes all cached surfaces replacing them with new ones.
Definition at line 326 of file FlutterSurfaceManager.mm.