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

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

Issue 25277005: Move more framebuffer state out of ContextState and into FramebufferState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased onto head, in the hope this fix errors unrelated to my change. Created 7 years, 2 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // The values for each attrib. 139 // The values for each attrib.
140 std::vector<Vec4> attrib_values; 140 std::vector<Vec4> attrib_values;
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 framebuffers
149 scoped_refptr<Framebuffer> bound_read_framebuffer;
150 scoped_refptr<Framebuffer> bound_draw_framebuffer;
151
152 // The currently bound renderbuffer 148 // The currently bound renderbuffer
153 scoped_refptr<Renderbuffer> bound_renderbuffer; 149 scoped_refptr<Renderbuffer> bound_renderbuffer;
154 150
155 scoped_refptr<QueryManager::Query> current_query; 151 scoped_refptr<QueryManager::Query> current_query;
156 152
157 bool pack_reverse_row_order; 153 bool pack_reverse_row_order;
158 154
159 mutable bool fbo_binding_for_scissor_workaround_dirty_; 155 mutable bool fbo_binding_for_scissor_workaround_dirty_;
160 FeatureInfo* feature_info_; 156 FeatureInfo* feature_info_;
161 157
162 private: 158 private:
163 scoped_ptr<ErrorState> error_state_; 159 scoped_ptr<ErrorState> error_state_;
164 }; 160 };
165 161
166 } // namespace gles2 162 } // namespace gles2
167 } // namespace gpu 163 } // namespace gpu
168 164
169 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 165 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
170 166
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698