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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 gl_.reset(new StrictMock<MockGLInterface>()); | 184 gl_.reset(new StrictMock<MockGLInterface>()); |
185 ::gfx::MockGLInterface::SetGLInterface(gl_.get()); | 185 ::gfx::MockGLInterface::SetGLInterface(gl_.get()); |
186 | 186 |
187 SetupMockGLBehaviors(); | 187 SetupMockGLBehaviors(); |
188 | 188 |
189 scoped_refptr<FeatureInfo> feature_info; | 189 scoped_refptr<FeatureInfo> feature_info; |
190 if (command_line) | 190 if (command_line) |
191 feature_info = new FeatureInfo(*command_line); | 191 feature_info = new FeatureInfo(*command_line); |
192 group_ = scoped_refptr<ContextGroup>( | 192 group_ = scoped_refptr<ContextGroup>( |
193 new ContextGroup(NULL, memory_tracker_, new ShaderTranslatorCache, | 193 new ContextGroup(gpu_preferences_, NULL, memory_tracker_, |
| 194 new ShaderTranslatorCache(gpu_preferences_), |
194 new FramebufferCompletenessCache, feature_info.get(), | 195 new FramebufferCompletenessCache, feature_info.get(), |
195 new SubscriptionRefSet, new ValueStateMap, | 196 new SubscriptionRefSet, new ValueStateMap, |
196 normalized_init.bind_generates_resource)); | 197 normalized_init.bind_generates_resource)); |
197 bool use_default_textures = normalized_init.bind_generates_resource; | 198 bool use_default_textures = normalized_init.bind_generates_resource; |
198 | 199 |
199 InSequence sequence; | 200 InSequence sequence; |
200 | 201 |
201 surface_ = new gfx::GLSurfaceStub; | 202 surface_ = new gfx::GLSurfaceStub; |
202 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); | 203 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); |
203 | 204 |
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 SetupDefaultProgram(); | 2033 SetupDefaultProgram(); |
2033 } | 2034 } |
2034 | 2035 |
2035 // Include the auto-generated part of this file. We split this because it means | 2036 // Include the auto-generated part of this file. We split this because it means |
2036 // we can easily edit the non-auto generated parts right here in this file | 2037 // we can easily edit the non-auto generated parts right here in this file |
2037 // instead of having to edit some template or the code generator. | 2038 // instead of having to edit some template or the code generator. |
2038 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2039 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2039 | 2040 |
2040 } // namespace gles2 | 2041 } // namespace gles2 |
2041 } // namespace gpu | 2042 } // namespace gpu |
OLD | NEW |