| 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 <memory> |   10 #include <memory> | 
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  347  |  347  | 
|  348   // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters |  348   // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters | 
|  349   // user values; otherwise, set them to 0. |  349   // user values; otherwise, set them to 0. | 
|  350   void UpdatePackParameters() const; |  350   void UpdatePackParameters() const; | 
|  351   // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack |  351   // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack | 
|  352   // parameters user values; otherwise, set them to 0. |  352   // parameters user values; otherwise, set them to 0. | 
|  353   void UpdateUnpackParameters() const; |  353   void UpdateUnpackParameters() const; | 
|  354  |  354  | 
|  355   void InitStateManual(const ContextState* prev_state) const; |  355   void InitStateManual(const ContextState* prev_state) const; | 
|  356  |  356  | 
|  357   bool framebuffer_srgb_; |  357   // EnableDisableFramebufferSRGB is called at very high frequency. Cache the | 
 |  358   // true value of FRAMEBUFFER_SRGB, if we know it, to elide some of these | 
 |  359   // calls. | 
 |  360   bool framebuffer_srgb_valid_ = false; | 
 |  361   bool framebuffer_srgb_ = false; | 
|  358  |  362  | 
|  359   // Generic vertex attrib base types: FLOAT, INT, or UINT. |  363   // Generic vertex attrib base types: FLOAT, INT, or UINT. | 
|  360   // Each base type is encoded into 2 bits, the lowest 2 bits for location 0, |  364   // Each base type is encoded into 2 bits, the lowest 2 bits for location 0, | 
|  361   // the highest 2 bits for location (max_vertex_attribs - 1). |  365   // the highest 2 bits for location (max_vertex_attribs - 1). | 
|  362   std::vector<uint32_t> generic_attrib_base_type_mask_; |  366   std::vector<uint32_t> generic_attrib_base_type_mask_; | 
|  363  |  367  | 
|  364   GLfloat line_width_min_ = 0.0f; |  368   GLfloat line_width_min_ = 0.0f; | 
|  365   GLfloat line_width_max_ = 1.0f; |  369   GLfloat line_width_max_ = 1.0f; | 
|  366  |  370  | 
|  367   FeatureInfo* feature_info_; |  371   FeatureInfo* feature_info_; | 
|  368   std::unique_ptr<ErrorState> error_state_; |  372   std::unique_ptr<ErrorState> error_state_; | 
|  369 }; |  373 }; | 
|  370  |  374  | 
|  371 }  // namespace gles2 |  375 }  // namespace gles2 | 
|  372 }  // namespace gpu |  376 }  // namespace gpu | 
|  373  |  377  | 
|  374 #endif  // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |  378 #endif  // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 
| OLD | NEW |