Skip to content

Commit 7b92deb

Browse files
Enable software rendering for iOS devices
1 parent 494140f commit 7b92deb

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
working-directory: engine/src
6464
run: |
6565
./flutter/tools/gn --unoptimized --runtime-mode=debug
66-
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=debug
67-
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=profile
66+
./flutter/tools/gn --ios --unoptimized --runtime-mode=debug
67+
./flutter/tools/gn --ios --unoptimized --runtime-mode=profile
6868
./flutter/tools/gn --ios --unoptimized --runtime-mode=release
69-
# ./flutter/tools/gn --ios --runtime-mode=debug
70-
# ./flutter/tools/gn --ios --runtime-mode=profile
69+
./flutter/tools/gn --ios --runtime-mode=debug
70+
./flutter/tools/gn --ios --runtime-mode=profile
7171
./flutter/tools/gn --ios --runtime-mode=release
7272
7373
- name: Build

shell/platform/darwin/ios/rendering_api_selection.mm

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,9 @@ bool ShouldUseMetalRenderer() {
2929
}
3030

3131
IOSRenderingAPI GetRenderingAPIForProcess(bool force_software) {
32-
#if TARGET_OS_SIMULATOR
3332
if (force_software) {
3433
return IOSRenderingAPI::kSoftware;
3534
}
36-
#else
37-
if (force_software) {
38-
FML_LOG(WARNING) << "The --enable-software-rendering is only supported on Simulator targets "
39-
"and will be ignored.";
40-
}
41-
#endif // TARGET_OS_SIMULATOR
4235

4336
static bool should_use_metal = ShouldUseMetalRenderer();
4437
if (should_use_metal) {

0 commit comments

Comments
 (0)