[flutter_tools] configure shader compiler to output GLES3 shaders for Android. (#159857)

Required changes for https://github.com/flutter/engine/pull/56960

This configures an additional shader target for Android devices.
This commit is contained in:
Jonah Williams 2024-12-05 12:43:12 -08:00 committed by GitHub
parent bb7d007b51
commit e1c09f408c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class ShaderCompiler {
case TargetPlatform.linux_arm64: case TargetPlatform.linux_arm64:
case TargetPlatform.windows_x64: case TargetPlatform.windows_x64:
case TargetPlatform.windows_arm64: case TargetPlatform.windows_arm64:
return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-vulkan']; return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-gles3', '--runtime-stage-vulkan'];
case TargetPlatform.ios: case TargetPlatform.ios:
case TargetPlatform.darwin: case TargetPlatform.darwin:

View File

@ -774,6 +774,7 @@ flutter:
impellerc, impellerc,
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=$outputPath', '--sl=$outputPath',

View File

@ -543,6 +543,7 @@ void main() {
'HostArtifact.impellerc', 'HostArtifact.impellerc',
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=out/flutter_assets/shader.glsl', '--sl=out/flutter_assets/shader.glsl',

View File

@ -124,6 +124,7 @@ void main() {
impellerc, impellerc,
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=$outputPath', '--sl=$outputPath',
@ -245,6 +246,7 @@ void main() {
impellerc, impellerc,
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=/.tmp_rand0/0.8255140718871702.temp', '--sl=/.tmp_rand0/0.8255140718871702.temp',
@ -337,6 +339,7 @@ void main() {
impellerc, impellerc,
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=/.tmp_rand0/0.8255140718871702.temp', '--sl=/.tmp_rand0/0.8255140718871702.temp',
@ -429,6 +432,7 @@ void main() {
impellerc, impellerc,
'--sksl', '--sksl',
'--runtime-stage-gles', '--runtime-stage-gles',
'--runtime-stage-gles3',
'--runtime-stage-vulkan', '--runtime-stage-vulkan',
'--iplr', '--iplr',
'--sl=/.tmp_rand0/0.8255140718871702.temp', '--sl=/.tmp_rand0/0.8255140718871702.temp',