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 // 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 Loading... |
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 typedef std::map<GLuint, scoped_refptr<QueryManager::Query> > QueryMap; |
| 152 QueryMap current_queries; |
152 | 153 |
153 bool pack_reverse_row_order; | 154 bool pack_reverse_row_order; |
154 | 155 |
155 mutable bool fbo_binding_for_scissor_workaround_dirty_; | 156 mutable bool fbo_binding_for_scissor_workaround_dirty_; |
156 FeatureInfo* feature_info_; | 157 FeatureInfo* feature_info_; |
157 | 158 |
158 private: | 159 private: |
159 scoped_ptr<ErrorState> error_state_; | 160 scoped_ptr<ErrorState> error_state_; |
160 }; | 161 }; |
161 | 162 |
162 } // namespace gles2 | 163 } // namespace gles2 |
163 } // namespace gpu | 164 } // namespace gpu |
164 | 165 |
165 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 166 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
166 | 167 |
OLD | NEW |