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/gles2_cmd_decoder_unittest_base.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 ::gl::MockGLInterface::SetGLInterface(gl_.get()); | 186 ::gl::MockGLInterface::SetGLInterface(gl_.get()); |
187 | 187 |
188 SetupMockGLBehaviors(); | 188 SetupMockGLBehaviors(); |
189 | 189 |
190 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; | 190 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; |
191 if (command_line) { | 191 if (command_line) { |
192 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line); | 192 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line); |
193 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround); | 193 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround); |
194 } | 194 } |
195 | 195 |
196 group_ = scoped_refptr<ContextGroup>(new ContextGroup( | 196 group_ = scoped_refptr<ContextGroup>( |
197 gpu_preferences_, NULL, memory_tracker_, | 197 new ContextGroup(gpu_preferences_, NULL, memory_tracker_, |
198 new ShaderTranslatorCache(gpu_preferences_), | 198 new ShaderTranslatorCache(gpu_preferences_), |
199 new FramebufferCompletenessCache, feature_info, | 199 new FramebufferCompletenessCache, feature_info, |
200 normalized_init.bind_generates_resource, nullptr, nullptr)); | 200 normalized_init.bind_generates_resource, nullptr, |
| 201 nullptr, GpuFeatureInfo())); |
201 bool use_default_textures = normalized_init.bind_generates_resource; | 202 bool use_default_textures = normalized_init.bind_generates_resource; |
202 | 203 |
203 InSequence sequence; | 204 InSequence sequence; |
204 | 205 |
205 surface_ = new gl::GLSurfaceStub; | 206 surface_ = new gl::GLSurfaceStub; |
206 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); | 207 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); |
207 | 208 |
208 // Context needs to be created before initializing ContextGroup, which will | 209 // Context needs to be created before initializing ContextGroup, which will |
209 // in turn initialize FeatureInfo, which needs a context to determine | 210 // in turn initialize FeatureInfo, which needs a context to determine |
210 // extension support. | 211 // extension support. |
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2181 SetupDefaultProgram(); | 2182 SetupDefaultProgram(); |
2182 } | 2183 } |
2183 | 2184 |
2184 // Include the auto-generated part of this file. We split this because it means | 2185 // Include the auto-generated part of this file. We split this because it means |
2185 // we can easily edit the non-auto generated parts right here in this file | 2186 // we can easily edit the non-auto generated parts right here in this file |
2186 // instead of having to edit some template or the code generator. | 2187 // instead of having to edit some template or the code generator. |
2187 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2188 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2188 | 2189 |
2189 } // namespace gles2 | 2190 } // namespace gles2 |
2190 } // namespace gpu | 2191 } // namespace gpu |
OLD | NEW |