diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterResizableBackingStoreProvider.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterResizableBackingStoreProvider.mm index 14988a0613f..1d4c2921e83 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterResizableBackingStoreProvider.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterResizableBackingStoreProvider.mm @@ -78,16 +78,15 @@ } - (void)resizeSynchronizerFlush:(nonnull FlutterResizeSynchronizer*)synchronizer { - // no-op when using Metal rendering backend. + id commandBuffer = [_commandQueue commandBuffer]; + [commandBuffer commit]; + [commandBuffer waitUntilScheduled]; } - (void)resizeSynchronizerCommit:(nonnull FlutterResizeSynchronizer*)synchronizer { [CATransaction begin]; [CATransaction setDisableActions:YES]; - id commandBuffer = [_commandQueue commandBuffer]; - [commandBuffer commit]; - [commandBuffer waitUntilScheduled]; [_surfaceManager swapBuffers]; [CATransaction commit];