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 {
98
98
FlutterSurface* surface = [view.surfaceManager surfaceForSize: size];
99
99
FlutterMetalTexture texture = surface.asFlutterMetalTexture ;
100
100
// 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 .
103
103
if (texture.destruction_callback != nullptr ) {
104
104
texture.destruction_callback (texture.user_data );
105
105
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ - (nullable FlutterSurface*)removeSurfaceForSize:(CGSize)size {
30
30
@synchronized (self) {
31
31
for (FlutterSurface* surface in _surfaces) {
32
32
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.
34
34
FlutterSurface* res = surface;
35
35
[_surfaces removeObject: surface];
36
36
return res;
You can’t perform that action at this time.
0 commit comments