Chromium Code Reviews| Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
| index 502d07634aed122a9ff92564c7a843f23442ab34..a3b7dd74f395d9ae8e2449b55223dc0473a78c56 100644 |
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/command_line.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/string_split.h" |
| #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| @@ -163,7 +164,11 @@ GLES2DecoderTestBase::InitState::InitState() |
| } |
| void GLES2DecoderTestBase::InitDecoder(const InitState& init) { |
| - InitDecoderWithCommandLine(init, NULL); |
| + base::CommandLine command_line(0, NULL); |
| + gfx::GLVersionInfo gl_info(init.gl_version.c_str(), "", ""); |
| + if (gl_info.is_es3) |
| + command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); |
| + InitDecoderWithCommandLine(init, &command_line); |
|
Zhenyao Mo
2015/09/14 21:12:06
No, we definitely don't want to test all decoder t
qiankun
2015/09/15 09:14:58
Done.
|
| } |
| void GLES2DecoderTestBase::InitDecoderWithCommandLine( |