diff options
author | kkinnunen <kkinnunen@nvidia.com> | 2016-02-01 00:30:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-01 08:31:47 +0000 |
commit | 394e596bb817f3db6cf9f8834f5d24492f7ddc94 (patch) | |
tree | 17ab8056219fd5acd90e5e72be6b527c7e8338b6 /gpu/gles2_conform_support | |
parent | f3ba5db653caa7c372939949c52532a41d2c2762 (diff) | |
download | chromium_src-394e596bb817f3db6cf9f8834f5d24492f7ddc94.zip chromium_src-394e596bb817f3db6cf9f8834f5d24492f7ddc94.tar.gz chromium_src-394e596bb817f3db6cf9f8834f5d24492f7ddc94.tar.bz2 |
Set disabled GL extensions from gpu driver bug list for the test executables
Apply disabled GL extensions from gpu driver bug list for all the gpu
related executables. This makes it possible to use the disabled extensions
in gpu driver bug list so that they apply to unit tests.
This is needed in order to implement and test features that are
likely to not work at all unless disabled extensions work.
BUG=344330
Review URL: https://codereview.chromium.org/1215063005
Cr-Commit-Position: refs/heads/master@{#372624}
Diffstat (limited to 'gpu/gles2_conform_support')
-rw-r--r-- | gpu/gles2_conform_support/egl/egl.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gpu/gles2_conform_support/egl/egl.cc b/gpu/gles2_conform_support/egl/egl.cc index 2d078f3..a61bf53 100644 --- a/gpu/gles2_conform_support/egl/egl.cc +++ b/gpu/gles2_conform_support/egl/egl.cc @@ -12,6 +12,7 @@ #include "base/strings/utf_string_conversions.h" #include "gpu/command_buffer/client/gles2_lib.h" #include "gpu/command_buffer/service/gpu_switches.h" +#include "gpu/config/gpu_info_collector.h" #include "gpu/config/gpu_util.h" #include "gpu/gles2_conform_support/egl/display.h" #include "ui/gl/gl_context.h" @@ -135,7 +136,9 @@ EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, // argc, argv in CommandLine::Init(argc, argv). command_line->InitFromArgv(argv); if (!command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) { - gpu::ApplyGpuDriverBugWorkarounds(command_line); + gpu::GPUInfo gpu_info; + gpu::CollectBasicGraphicsInfo(&gpu_info); + gpu::ApplyGpuDriverBugWorkarounds(gpu_info, command_line); } gfx::GLSurface::InitializeOneOff(); |