OLD | NEW |
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/program_manager.h" | 5 #include "gpu/command_buffer/service/program_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2153 EXPECT_TRUE(program_->Link(NULL, Program::kCountOnlyStaticallyUsed, | 2153 EXPECT_TRUE(program_->Link(NULL, Program::kCountOnlyStaticallyUsed, |
2154 base::Bind(&ShaderCacheCb))); | 2154 base::Bind(&ShaderCacheCb))); |
2155 } | 2155 } |
2156 | 2156 |
2157 class ProgramManagerWithPathRenderingTest | 2157 class ProgramManagerWithPathRenderingTest |
2158 : public ProgramManagerWithShaderTest, | 2158 : public ProgramManagerWithShaderTest, |
2159 public testing::WithParamInterface< | 2159 public testing::WithParamInterface< |
2160 testing::tuple<const char*, const char*>> { | 2160 testing::tuple<const char*, const char*>> { |
2161 protected: | 2161 protected: |
2162 void SetUp() override { | 2162 void SetUp() override { |
2163 SetUpBase(testing::get<0>(GetParam()), testing::get<1>(GetParam())); | 2163 base::CommandLine command_line(*base::CommandLine::ForCurrentProcess()); |
| 2164 command_line.AppendSwitch(switches::kEnableGLPathRendering); |
| 2165 FeatureInfo* feature_info = new FeatureInfo(command_line); |
| 2166 SetUpBase(testing::get<0>(GetParam()), testing::get<1>(GetParam()), |
| 2167 feature_info); |
2164 } | 2168 } |
2165 static const char* kFragmentInput1Name; | 2169 static const char* kFragmentInput1Name; |
2166 static const char* kFragmentInput2Name; | 2170 static const char* kFragmentInput2Name; |
2167 // Name that GL reports for input 2. Needed because input 2 is an | 2171 // Name that GL reports for input 2. Needed because input 2 is an |
2168 // array. | 2172 // array. |
2169 static const char* kFragmentInput2GLName; | 2173 static const char* kFragmentInput2GLName; |
2170 static const char* kFragmentInput3Name; | 2174 static const char* kFragmentInput3Name; |
2171 static const char* kFragmentInput3GLName; | 2175 static const char* kFragmentInput3GLName; |
2172 static const GLint kFragmentInput1Size = 1; | 2176 static const GLint kFragmentInput1Size = 1; |
2173 static const GLint kFragmentInput2Size = 3; | 2177 static const GLint kFragmentInput2Size = 3; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 ProgramManagerDualSourceBlendingES2Test, | 2392 ProgramManagerDualSourceBlendingES2Test, |
2389 testing::Values( | 2393 testing::Values( |
2390 make_gl_ext_tuple("3.2", | 2394 make_gl_ext_tuple("3.2", |
2391 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " | 2395 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " |
2392 "GL_ARB_program_interface_query"), | 2396 "GL_ARB_program_interface_query"), |
2393 make_gl_ext_tuple("opengl es 3.1", | 2397 make_gl_ext_tuple("opengl es 3.1", |
2394 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); | 2398 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); |
2395 | 2399 |
2396 } // namespace gles2 | 2400 } // namespace gles2 |
2397 } // namespace gpu | 2401 } // namespace gpu |
OLD | NEW |