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

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

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
17 #include "gpu/command_buffer/common/gles2_cmd_format.h" 17 #include "gpu/command_buffer/common/gles2_cmd_format.h"
18 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 18 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
19 #include "gpu/command_buffer/common/value_state.h"
20 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 19 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
21 #include "gpu/command_buffer/service/context_group.h" 20 #include "gpu/command_buffer/service/context_group.h"
22 #include "gpu/command_buffer/service/logger.h" 21 #include "gpu/command_buffer/service/logger.h"
23 #include "gpu/command_buffer/service/mailbox_manager.h" 22 #include "gpu/command_buffer/service/mailbox_manager.h"
24 #include "gpu/command_buffer/service/program_manager.h" 23 #include "gpu/command_buffer/service/program_manager.h"
25 #include "gpu/command_buffer/service/test_helper.h" 24 #include "gpu/command_buffer/service/test_helper.h"
26 #include "gpu/command_buffer/service/vertex_attrib_manager.h" 25 #include "gpu/command_buffer/service/vertex_attrib_manager.h"
27 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
28 #include "ui/gl/gl_implementation.h" 27 #include "ui/gl/gl_implementation.h"
29 #include "ui/gl/gl_mock.h" 28 #include "ui/gl/gl_mock.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 client_program_id_(102), 104 client_program_id_(102),
106 client_renderbuffer_id_(103), 105 client_renderbuffer_id_(103),
107 client_sampler_id_(104), 106 client_sampler_id_(104),
108 client_shader_id_(105), 107 client_shader_id_(105),
109 client_texture_id_(106), 108 client_texture_id_(106),
110 client_element_buffer_id_(107), 109 client_element_buffer_id_(107),
111 client_vertex_shader_id_(121), 110 client_vertex_shader_id_(121),
112 client_fragment_shader_id_(122), 111 client_fragment_shader_id_(122),
113 client_query_id_(123), 112 client_query_id_(123),
114 client_vertexarray_id_(124), 113 client_vertexarray_id_(124),
115 client_valuebuffer_id_(125),
116 client_transformfeedback_id_(126), 114 client_transformfeedback_id_(126),
117 client_sync_id_(127), 115 client_sync_id_(127),
118 service_renderbuffer_id_(0), 116 service_renderbuffer_id_(0),
119 service_renderbuffer_valid_(false), 117 service_renderbuffer_valid_(false),
120 ignore_cached_state_for_test_(GetParam()), 118 ignore_cached_state_for_test_(GetParam()),
121 cached_color_mask_red_(true), 119 cached_color_mask_red_(true),
122 cached_color_mask_green_(true), 120 cached_color_mask_green_(true),
123 cached_color_mask_blue_(true), 121 cached_color_mask_blue_(true),
124 cached_color_mask_alpha_(true), 122 cached_color_mask_alpha_(true),
125 cached_depth_mask_(true), 123 cached_depth_mask_(true),
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 189
192 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; 190 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo;
193 if (command_line) { 191 if (command_line) {
194 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line); 192 GpuDriverBugWorkarounds gpu_driver_bug_workaround(command_line);
195 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround); 193 feature_info = new FeatureInfo(*command_line, gpu_driver_bug_workaround);
196 } 194 }
197 195
198 group_ = scoped_refptr<ContextGroup>(new ContextGroup( 196 group_ = scoped_refptr<ContextGroup>(new ContextGroup(
199 gpu_preferences_, NULL, memory_tracker_, 197 gpu_preferences_, NULL, memory_tracker_,
200 new ShaderTranslatorCache(gpu_preferences_), 198 new ShaderTranslatorCache(gpu_preferences_),
201 new FramebufferCompletenessCache, feature_info, new SubscriptionRefSet, 199 new FramebufferCompletenessCache, feature_info,
202 new ValueStateMap, normalized_init.bind_generates_resource)); 200 normalized_init.bind_generates_resource));
203 bool use_default_textures = normalized_init.bind_generates_resource; 201 bool use_default_textures = normalized_init.bind_generates_resource;
204 202
205 InSequence sequence; 203 InSequence sequence;
206 204
207 surface_ = new gfx::GLSurfaceStub; 205 surface_ = new gfx::GLSurfaceStub;
208 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); 206 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight));
209 207
210 // Context needs to be created before initializing ContextGroup, which will 208 // Context needs to be created before initializing ContextGroup, which will
211 // in turn initialize FeatureInfo, which needs a context to determine 209 // in turn initialize FeatureInfo, which needs a context to determine
212 // extension support. 210 // extension support.
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 SetupDefaultProgram(); 2032 SetupDefaultProgram();
2035 } 2033 }
2036 2034
2037 // Include the auto-generated part of this file. We split this because it means 2035 // Include the auto-generated part of this file. We split this because it means
2038 // we can easily edit the non-auto generated parts right here in this file 2036 // we can easily edit the non-auto generated parts right here in this file
2039 // instead of having to edit some template or the code generator. 2037 // instead of having to edit some template or the code generator.
2040 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 2038 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
2041 2039
2042 } // namespace gles2 2040 } // namespace gles2
2043 } // namespace gpu 2041 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698