Skip to content

Commit e1c09f4

Browse files
author
Jonah Williams
authored
[flutter_tools] configure shader compiler to output GLES3 shaders for Android. (flutter#159857)
Required changes for flutter/engine#56960 This configures an additional shader target for Android devices.
1 parent bb7d007 commit e1c09f4

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

packages/flutter_tools/lib/src/build_system/tools/shader_compiler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class ShaderCompiler {
115115
case TargetPlatform.linux_arm64:
116116
case TargetPlatform.windows_x64:
117117
case TargetPlatform.windows_arm64:
118-
return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-vulkan'];
118+
return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-gles3', '--runtime-stage-vulkan'];
119119

120120
case TargetPlatform.ios:
121121
case TargetPlatform.darwin:

packages/flutter_tools/test/general.shard/asset_bundle_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ flutter:
774774
impellerc,
775775
'--sksl',
776776
'--runtime-stage-gles',
777+
'--runtime-stage-gles3',
777778
'--runtime-stage-vulkan',
778779
'--iplr',
779780
'--sl=$outputPath',

packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ void main() {
543543
'HostArtifact.impellerc',
544544
'--sksl',
545545
'--runtime-stage-gles',
546+
'--runtime-stage-gles3',
546547
'--runtime-stage-vulkan',
547548
'--iplr',
548549
'--sl=out/flutter_assets/shader.glsl',

packages/flutter_tools/test/general.shard/build_system/targets/shader_compiler_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ void main() {
124124
impellerc,
125125
'--sksl',
126126
'--runtime-stage-gles',
127+
'--runtime-stage-gles3',
127128
'--runtime-stage-vulkan',
128129
'--iplr',
129130
'--sl=$outputPath',
@@ -245,6 +246,7 @@ void main() {
245246
impellerc,
246247
'--sksl',
247248
'--runtime-stage-gles',
249+
'--runtime-stage-gles3',
248250
'--runtime-stage-vulkan',
249251
'--iplr',
250252
'--sl=/.tmp_rand0/0.8255140718871702.temp',
@@ -337,6 +339,7 @@ void main() {
337339
impellerc,
338340
'--sksl',
339341
'--runtime-stage-gles',
342+
'--runtime-stage-gles3',
340343
'--runtime-stage-vulkan',
341344
'--iplr',
342345
'--sl=/.tmp_rand0/0.8255140718871702.temp',
@@ -429,6 +432,7 @@ void main() {
429432
impellerc,
430433
'--sksl',
431434
'--runtime-stage-gles',
435+
'--runtime-stage-gles3',
432436
'--runtime-stage-vulkan',
433437
'--iplr',
434438
'--sl=/.tmp_rand0/0.8255140718871702.temp',

0 commit comments

Comments
 (0)