• Alexis Hetu's avatar
    Fixed fallback to software for tests · 06a905b5
    Alexis Hetu authored
    In ui/gl/init/gl_factory.cc, InitializeGLOneOffImplementation() has
    functionality to fallback to software OpenGL, which wasn't working for
    SwiftShader, since it uses the same initializer as Angle (which is EGL
    and GLESv2). Currently, the way to distinguish between the two was
    through command line flags, but the flags stay unchanged when falling
    back to software OpenGL, so an extra argument was added in order to
    know if the EGL/GLESv2 initialization has to use SwiftShader.
    
    Bug: 726075
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;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
    Change-Id: Ic4480f0e1e9ac385b90f2760408b10a9738a2498
    Reviewed-on: https://chromium-review.googlesource.com/517912
    Commit-Queue: Kenneth Russell <kbr@chromium.org>
    Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#476162}
    06a905b5
gl_factory.cc 3.33 KB