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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [RFC] gpu: Reuse transfer buffers more aggressively 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698