| 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 base::CommandLine command_line(*base::CommandLine::ForCurrentProcess()); | 2163 SetUpBase(testing::get<0>(GetParam()), testing::get<1>(GetParam())); |
| 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); | |
| 2168 } | 2164 } |
| 2169 static const char* kFragmentInput1Name; | 2165 static const char* kFragmentInput1Name; |
| 2170 static const char* kFragmentInput2Name; | 2166 static const char* kFragmentInput2Name; |
| 2171 // Name that GL reports for input 2. Needed because input 2 is an | 2167 // Name that GL reports for input 2. Needed because input 2 is an |
| 2172 // array. | 2168 // array. |
| 2173 static const char* kFragmentInput2GLName; | 2169 static const char* kFragmentInput2GLName; |
| 2174 static const char* kFragmentInput3Name; | 2170 static const char* kFragmentInput3Name; |
| 2175 static const char* kFragmentInput3GLName; | 2171 static const char* kFragmentInput3GLName; |
| 2176 static const GLint kFragmentInput1Size = 1; | 2172 static const GLint kFragmentInput1Size = 1; |
| 2177 static const GLint kFragmentInput2Size = 3; | 2173 static const GLint kFragmentInput2Size = 3; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2397 ProgramManagerDualSourceBlendingES2Test, | 2393 ProgramManagerDualSourceBlendingES2Test, |
| 2398 testing::Values( | 2394 testing::Values( |
| 2399 make_gl_ext_tuple("3.2", | 2395 make_gl_ext_tuple("3.2", |
| 2400 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " | 2396 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " |
| 2401 "GL_ARB_program_interface_query"), | 2397 "GL_ARB_program_interface_query"), |
| 2402 make_gl_ext_tuple("opengl es 3.1", | 2398 make_gl_ext_tuple("opengl es 3.1", |
| 2403 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); | 2399 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); |
| 2404 | 2400 |
| 2405 } // namespace gles2 | 2401 } // namespace gles2 |
| 2406 } // namespace gpu | 2402 } // namespace gpu |
| OLD | NEW |