mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Same as https://github.com/flutter/engine/pull/51636 except: 1. The original change caused scuba changes because those simulators are running on Macs without GPU passthrough, and so fallback to software rendering when `MTLCreateSystemDefaultDevice()` fails. Re-add that `MTLCreateSystemDefaultDevice` check https://github.com/flutter/engine/pull/51636/files#diff-1db60a8a74c1cfb40c970541dd1f7f0f6301853a2ba17451f5117f154036d732L22-L31 2. Set `enable_metal` to always true for `macos/BUILD.gn` [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style