| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |