This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
shell/platform/darwin/macos/framework/Source Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ - (FlutterMetalTexture)createTextureForView:(uint64_t)viewId size:(CGSize)size {
9898 FlutterSurface* surface = [view.surfaceManager surfaceForSize: size];
9999 FlutterMetalTexture texture = surface.asFlutterMetalTexture ;
100100 // This is here because the non-compositor path completely ignores
101- // destruction and user data callback. It is ugly, but the surface manager
102- // will keep the surface retained until present.
101+ // destruction and callback. It is ugly, but the surface manager
102+ // will keep the borrowed surface retained until present: is called .
103103 if (texture.destruction_callback != nullptr ) {
104104 texture.destruction_callback (texture.user_data );
105105 }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ - (nullable FlutterSurface*)removeSurfaceForSize:(CGSize)size {
3030 @synchronized (self) {
3131 for (FlutterSurface* surface in _surfaces) {
3232 if (CGSizeEqualToSize (surface.size , size)) {
33- // By default ARC doesn't retain enumartion iteration variables.
33+ // By default ARC doesn't retain enumeration iteration variables.
3434 FlutterSurface* res = surface;
3535 [_surfaces removeObject: surface];
3636 return res;
You can’t perform that action at this time.
0 commit comments