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