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

Side by Side Diff: gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc

Issue 2471853002: remove 'unsafe' from ES3 apis in gpu process (Closed)
Patch Set: forgot to save file 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 #include <GLES2/gl2extchromium.h> 7 #include <GLES2/gl2extchromium.h>
8 #include <GLES3/gl3.h> 8 #include <GLES3/gl3.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 class EXTBlendFuncExtendedES3DrawTest : public EXTBlendFuncExtendedDrawTest { 249 class EXTBlendFuncExtendedES3DrawTest : public EXTBlendFuncExtendedDrawTest {
250 protected: 250 protected:
251 void SetUp() override { 251 void SetUp() override {
252 GLManager::Options options; 252 GLManager::Options options;
253 options.size = gfx::Size(kWidth, kHeight); 253 options.size = gfx::Size(kWidth, kHeight);
254 options.context_type = gles2::CONTEXT_TYPE_OPENGLES3; 254 options.context_type = gles2::CONTEXT_TYPE_OPENGLES3;
255 options.force_shader_name_hashing = GetParam(); 255 options.force_shader_name_hashing = GetParam();
256 base::CommandLine command_line(*base::CommandLine::ForCurrentProcess()); 256 base::CommandLine command_line(*base::CommandLine::ForCurrentProcess());
257 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
258 gl_.InitializeWithCommandLine(options, command_line); 257 gl_.InitializeWithCommandLine(options, command_line);
259 } 258 }
260 bool IsApplicable() const { 259 bool IsApplicable() const {
261 return gl_.IsInitialized() && EXTBlendFuncExtendedDrawTest::IsApplicable(); 260 return gl_.IsInitialized() && EXTBlendFuncExtendedDrawTest::IsApplicable();
262 } 261 }
263 const char* GetVertexShader() override { 262 const char* GetVertexShader() override {
264 // clang-format off 263 // clang-format off
265 static const char* kVertexShader = 264 static const char* kVertexShader =
266 "#version 300 es\n" 265 "#version 300 es\n"
267 SHADER( 266 SHADER(
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 682
684 INSTANTIATE_TEST_CASE_P(TranslatorVariants, 683 INSTANTIATE_TEST_CASE_P(TranslatorVariants,
685 EXTBlendFuncExtendedDrawTest, 684 EXTBlendFuncExtendedDrawTest,
686 ::testing::Bool()); 685 ::testing::Bool());
687 686
688 INSTANTIATE_TEST_CASE_P(TranslatorVariants, 687 INSTANTIATE_TEST_CASE_P(TranslatorVariants,
689 EXTBlendFuncExtendedES3DrawTest, 688 EXTBlendFuncExtendedES3DrawTest,
690 ::testing::Bool()); 689 ::testing::Bool());
691 690
692 } // namespace gpu 691 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/fuzzer_main.cc ('k') | gpu/command_buffer/tests/gl_map_buffer_range_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698