Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ::gl::MockGLInterface::SetGLInterface(gl_.get()); 187 ::gl::MockGLInterface::SetGLInterface(gl_.get());
188 188
189 SetupMockGLBehaviors(); 189 SetupMockGLBehaviors();
190 190
191 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; 191 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo;
192 if (command_line) { 192 if (command_line) {
193 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line); 193 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line);
194 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround); 194 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround);
195 } 195 }
196 196
197 group_ = scoped_refptr<ContextGroup>(new ContextGroup( 197 group_ = scoped_refptr<ContextGroup>(
198 gpu_preferences_, NULL, memory_tracker_, 198 new ContextGroup(gpu_preferences_, NULL, memory_tracker_,
199 new ShaderTranslatorCache(gpu_preferences_), 199 new ShaderTranslatorCache(gpu_preferences_),
200 new FramebufferCompletenessCache, feature_info, 200 new FramebufferCompletenessCache, feature_info,
201 normalized_init.bind_generates_resource)); 201 normalized_init.bind_generates_resource, nullptr));
202 bool use_default_textures = normalized_init.bind_generates_resource; 202 bool use_default_textures = normalized_init.bind_generates_resource;
203 203
204 InSequence sequence; 204 InSequence sequence;
205 205
206 surface_ = new gl::GLSurfaceStub; 206 surface_ = new gl::GLSurfaceStub;
207 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); 207 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight));
208 208
209 // Context needs to be created before initializing ContextGroup, which will 209 // Context needs to be created before initializing ContextGroup, which will
210 // in turn initialize FeatureInfo, which needs a context to determine 210 // in turn initialize FeatureInfo, which needs a context to determine
211 // extension support. 211 // extension support.
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 SetupDefaultProgram(); 2080 SetupDefaultProgram();
2081 } 2081 }
2082 2082
2083 // Include the auto-generated part of this file. We split this because it means 2083 // Include the auto-generated part of this file. We split this because it means
2084 // we can easily edit the non-auto generated parts right here in this file 2084 // we can easily edit the non-auto generated parts right here in this file
2085 // instead of having to edit some template or the code generator. 2085 // instead of having to edit some template or the code generator.
2086 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2086 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2087 2087
2088 } // namespace gles2 2088 } // namespace gles2
2089 } // namespace gpu 2089 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/image_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698