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

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

Issue 106623008: gpu: Support parallel active queries in command buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gpu: Support parallel active queries in command buffer Created 6 years, 11 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 // 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>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // Class that manages vertex attribs. 142 // Class that manages vertex attribs.
143 scoped_refptr<VertexAttribManager> vertex_attrib_manager; 143 scoped_refptr<VertexAttribManager> vertex_attrib_manager;
144 144
145 // The program in use by glUseProgram 145 // The program in use by glUseProgram
146 scoped_refptr<Program> current_program; 146 scoped_refptr<Program> current_program;
147 147
148 // The currently bound renderbuffer 148 // The currently bound renderbuffer
149 scoped_refptr<Renderbuffer> bound_renderbuffer; 149 scoped_refptr<Renderbuffer> bound_renderbuffer;
150 150
151 scoped_refptr<QueryManager::Query> current_query; 151 // A map of of target -> Query for current queries
152 typedef std::map<GLuint, scoped_refptr<QueryManager::Query> > QueryMap;
153 QueryMap current_queries;
152 154
153 bool pack_reverse_row_order; 155 bool pack_reverse_row_order;
154 156
155 mutable bool fbo_binding_for_scissor_workaround_dirty_; 157 mutable bool fbo_binding_for_scissor_workaround_dirty_;
156 FeatureInfo* feature_info_; 158 FeatureInfo* feature_info_;
157 159
158 private: 160 private:
159 scoped_ptr<ErrorState> error_state_; 161 scoped_ptr<ErrorState> error_state_;
160 }; 162 };
161 163
162 } // namespace gles2 164 } // namespace gles2
163 } // namespace gpu 165 } // namespace gpu
164 166
165 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 167 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
166 168
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.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