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

Side by Side Diff: gpu/command_buffer/service/context_state.h

Issue 706903004: Revert of Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 // This file contains the ContextState class. 5 // This file contains the ContextState class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
9 9
10 #include <vector> 10 #include <vector>
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "gpu/command_buffer/service/gl_utils.h" 13 #include "gpu/command_buffer/service/gl_utils.h"
14 #include "gpu/command_buffer/service/query_manager.h" 14 #include "gpu/command_buffer/service/query_manager.h"
15 #include "gpu/command_buffer/service/texture_manager.h" 15 #include "gpu/command_buffer/service/texture_manager.h"
16 #include "gpu/command_buffer/service/valuebuffer_manager.h"
17 #include "gpu/command_buffer/service/vertex_attrib_manager.h" 16 #include "gpu/command_buffer/service/vertex_attrib_manager.h"
18 #include "gpu/command_buffer/service/vertex_array_manager.h" 17 #include "gpu/command_buffer/service/vertex_array_manager.h"
19 #include "gpu/gpu_export.h" 18 #include "gpu/gpu_export.h"
20 19
21 namespace gpu { 20 namespace gpu {
22 namespace gles2 { 21 namespace gles2 {
23 22
24 class Buffer; 23 class Buffer;
25 class ErrorState; 24 class ErrorState;
26 class ErrorStateClient; 25 class ErrorStateClient;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scoped_refptr<VertexAttribManager> vertex_attrib_manager; 193 scoped_refptr<VertexAttribManager> vertex_attrib_manager;
195 scoped_refptr<VertexAttribManager> default_vertex_attrib_manager; 194 scoped_refptr<VertexAttribManager> default_vertex_attrib_manager;
196 195
197 // The program in use by glUseProgram 196 // The program in use by glUseProgram
198 scoped_refptr<Program> current_program; 197 scoped_refptr<Program> current_program;
199 198
200 // The currently bound renderbuffer 199 // The currently bound renderbuffer
201 scoped_refptr<Renderbuffer> bound_renderbuffer; 200 scoped_refptr<Renderbuffer> bound_renderbuffer;
202 bool bound_renderbuffer_valid; 201 bool bound_renderbuffer_valid;
203 202
204 // The currently bound valuebuffer
205 scoped_refptr<Valuebuffer> bound_valuebuffer;
206
207 // A map of of target -> Query for current queries 203 // A map of of target -> Query for current queries
208 typedef std::map<GLuint, scoped_refptr<QueryManager::Query> > QueryMap; 204 typedef std::map<GLuint, scoped_refptr<QueryManager::Query> > QueryMap;
209 QueryMap current_queries; 205 QueryMap current_queries;
210 206
211 bool pack_reverse_row_order; 207 bool pack_reverse_row_order;
212 bool ignore_cached_state; 208 bool ignore_cached_state;
213 209
214 mutable bool fbo_binding_for_scissor_workaround_dirty_; 210 mutable bool fbo_binding_for_scissor_workaround_dirty_;
215 FeatureInfo* feature_info_; 211 FeatureInfo* feature_info_;
216 212
217 private: 213 private:
218 scoped_ptr<ErrorState> error_state_; 214 scoped_ptr<ErrorState> error_state_;
219 }; 215 };
220 216
221 } // namespace gles2 217 } // namespace gles2
222 } // namespace gpu 218 } // namespace gpu
223 219
224 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 220 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
225 221
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698