Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit cb2b42f

Browse files
committed
fix comments
1 parent 50a9413 commit cb2b42f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shell/platform/darwin/macos/framework/Source/FlutterRenderer.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

shell/platform/darwin/macos/framework/Source/FlutterSurfaceManager.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)