| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 kMaxDualSourceDrawBuffers, | 62 kMaxDualSourceDrawBuffers, |
| 63 gpu_preferences_, | 63 gpu_preferences_, |
| 64 feature_info_.get())); | 64 feature_info_.get())); |
| 65 } | 65 } |
| 66 void SetUpBase(const char* gl_version, | 66 void SetUpBase(const char* gl_version, |
| 67 const char* gl_extensions, | 67 const char* gl_extensions, |
| 68 FeatureInfo* feature_info = nullptr) { | 68 FeatureInfo* feature_info = nullptr) { |
| 69 GpuServiceTest::SetUpWithGLVersion(gl_version, gl_extensions); | 69 GpuServiceTest::SetUpWithGLVersion(gl_version, gl_extensions); |
| 70 TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion( | 70 TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion( |
| 71 gl_.get(), gl_extensions, "", gl_version); | 71 gl_.get(), gl_extensions, "", gl_version); |
| 72 if (!feature_info) | 72 if (!feature_info) { |
| 73 feature_info = new FeatureInfo(); | 73 GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_); |
| 74 feature_info = new FeatureInfo(gpu_driver_bug_workarounds_); |
| 75 } |
| 74 feature_info->InitializeForTesting(); | 76 feature_info->InitializeForTesting(); |
| 75 feature_info_ = feature_info; | 77 feature_info_ = feature_info; |
| 76 SetupProgramManager(); | 78 SetupProgramManager(); |
| 77 } | 79 } |
| 78 void SetUp() override { | 80 void SetUp() override { |
| 79 // Parameters same as GpuServiceTest::SetUp | 81 // Parameters same as GpuServiceTest::SetUp |
| 80 SetUpBase("2.0", "GL_EXT_framebuffer_object"); | 82 SetUpBase("2.0", "GL_EXT_framebuffer_object"); |
| 81 } | 83 } |
| 82 void TearDown() override { | 84 void TearDown() override { |
| 83 manager_->Destroy(false); | 85 manager_->Destroy(false); |
| (...skipping 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2397 ProgramManagerDualSourceBlendingES2Test, | 2399 ProgramManagerDualSourceBlendingES2Test, |
| 2398 testing::Values( | 2400 testing::Values( |
| 2399 make_gl_ext_tuple("3.2", | 2401 make_gl_ext_tuple("3.2", |
| 2400 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " | 2402 "GL_ARB_draw_buffers GL_ARB_blend_func_extended " |
| 2401 "GL_ARB_program_interface_query"), | 2403 "GL_ARB_program_interface_query"), |
| 2402 make_gl_ext_tuple("opengl es 3.1", | 2404 make_gl_ext_tuple("opengl es 3.1", |
| 2403 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); | 2405 "GL_EXT_draw_buffers GL_EXT_blend_func_extended"))); |
| 2404 | 2406 |
| 2405 } // namespace gles2 | 2407 } // namespace gles2 |
| 2406 } // namespace gpu | 2408 } // namespace gpu |
| OLD | NEW |