Chromium Code Reviews
DescriptionIntroducing a second usage for SwiftShader
In order to use SwiftShader to run layout tests, SwiftShader
must be usable the same way Mesa currently is: as a full
OpenGL implementation. In order to do that, a few things
were modified:
- A new flag was added:
gl::kGLImplementationSwiftShaderForWebGLName, which is
"--use-gl=swiftshader-webgl"
- The current way of using SwiftShader in Chromium is to
only use SwiftShader for WebGL. To reflect that,
gl::kGLImplementationSwiftShaderName was renamed to
gl::kGLImplementationSwiftShaderForWebGLName. All existing
occurences of the "swiftshader" string in the code were also
replaced with gl::kGLImplementationSwiftShaderForWebGLName.
- The old flag gl::kGLImplementationSwiftShaderName, usable
by setting the "--use-gl=swiftshader" flag, has a new
meaning, which is to use SwiftShader as the OpenGL ES
driver for all of Chromium, not only for WebGL. This will
allow SwiftShader to replace Mesa in the layout tests.
Note: Although the new modes were added, no changes to the
layout tests will happen with this cl, but it does allow
Chromium to use SwiftShader as the OpenGL ES driver on
Windows and Linux.
BUG=630728
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2680423002
Cr-Commit-Position: refs/heads/master@{#450059}
Committed: https://chromium.googlesource.com/chromium/src/+/2ad66a7079e608873f2e1c8a60bf316c76bbc156
Patch Set 1 #Patch Set 2 : Fixed Typo #Patch Set 3 : Added missing change to GpuDataManagerImplPrivate #
Total comments: 1
Messages
Total messages: 27 (18 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||