Skip to content

Commit

Permalink
Build specialized version of glslang
Browse files Browse the repository at this point in the history
This significantly reduces the binary size of ANGLE and improves its
startup time.

Bug: angleproject:4763
Bug: angleproject:4814
Bug: chromium:1084580
Bug: chromium:1091440
Change-Id: I2345c6eee663e131a5141f2edada7ac95a6ee9ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281665
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786371}
  • Loading branch information
ShabbyX authored and Commit Bot committed Jul 8, 2020
1 parent 34d802c commit 53d1b06
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build_overrides/glslang.gni
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@

glslang_spirv_tools_dir = "//third_party/SPIRV-Tools/src"

# Temporary to unblock glslang roll. Will change to true afterwards.
glslang_angle = false
# Chromium uses glslang for two things:
#
# - ANGLE's Vulkan backend.
# - Running WebGPU tests, where glslang is linked to shaderc.
#
# Note that the latter is not shipped to end users. For ANGLE, glslang is tailored to support only
# what ANGLE needs. This significantly reduces the binary size of ANGLE as well as glslang's startup
# time. This flag makes glslang strip features that are not used by ANGLE.
#
# For WebGPU testing, the complete glslang is linked to shaderc regardless of this flag.
glslang_angle = true

0 comments on commit 53d1b06

Please sign in to comment.