Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: fix a bug Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 10 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 GLES2DecoderTest1() { } 34 GLES2DecoderTest1() { }
35 }; 35 };
36 36
37 class GLES3DecoderTest1 : public GLES2DecoderTest1 { 37 class GLES3DecoderTest1 : public GLES2DecoderTest1 {
38 public: 38 public:
39 GLES3DecoderTest1() { shader_language_version_ = 300; } 39 GLES3DecoderTest1() { shader_language_version_ = 300; }
40 protected: 40 protected:
41 void SetUp() override { 41 void SetUp() override {
42 base::CommandLine command_line(0, nullptr); 42 base::CommandLine command_line(0, nullptr);
43 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
44 InitState init; 43 InitState init;
45 init.gl_version = "OpenGL ES 3.0"; 44 init.gl_version = "OpenGL ES 3.0";
46 init.bind_generates_resource = true; 45 init.bind_generates_resource = true;
47 init.context_type = CONTEXT_TYPE_OPENGLES3; 46 init.context_type = CONTEXT_TYPE_OPENGLES3;
48 InitDecoderWithCommandLine(init, &command_line); 47 InitDecoderWithCommandLine(init, &command_line);
49 } 48 }
50 }; 49 };
51 50
52 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest1, ::testing::Bool()); 51 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest1, ::testing::Bool());
53 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest1, ::testing::Bool()); 52 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest1, ::testing::Bool());
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 .Times(1) 202 .Times(1)
204 .RetiresOnSaturation(); 203 .RetiresOnSaturation();
205 } 204 }
206 } 205 }
207 206
208 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h" 207 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h"
209 208
210 } // namespace gles2 209 } // namespace gles2
211 } // namespace gpu 210 } // namespace gpu
212 211
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698