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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 scoped_refptr<Valuebuffer> bound_valuebuffer; | 259 scoped_refptr<Valuebuffer> bound_valuebuffer; |
260 | 260 |
261 bool pack_reverse_row_order; | 261 bool pack_reverse_row_order; |
262 bool ignore_cached_state; | 262 bool ignore_cached_state; |
263 | 263 |
264 mutable bool fbo_binding_for_scissor_workaround_dirty; | 264 mutable bool fbo_binding_for_scissor_workaround_dirty; |
265 | 265 |
266 private: | 266 private: |
267 void EnableDisable(GLenum pname, bool enable) const; | 267 void EnableDisable(GLenum pname, bool enable) const; |
268 | 268 |
269 // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters | |
270 // user values; otherwise, set them to 0. | |
271 void UpdatePackParameters() const; | |
272 // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack | |
273 // parameters user values; otherwise, set them to 0. | |
274 void UpdateUnpackParameters() const; | |
275 | |
276 FeatureInfo* feature_info_; | 269 FeatureInfo* feature_info_; |
277 scoped_ptr<ErrorState> error_state_; | 270 scoped_ptr<ErrorState> error_state_; |
278 }; | 271 }; |
279 | 272 |
280 } // namespace gles2 | 273 } // namespace gles2 |
281 } // namespace gpu | 274 } // namespace gpu |
282 | 275 |
283 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 276 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
284 | 277 |
OLD | NEW |