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

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

Issue 2537343008: Revert of Add command buffer support for EXT_sRGB_write_control (Closed)
Patch Set: Created 4 years 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 <memory> 10 #include <memory>
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // EnableDisableFramebufferSRGB is called at very high frequency. Cache the 357 bool framebuffer_srgb_;
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;
362 358
363 // Generic vertex attrib base types: FLOAT, INT, or UINT. 359 // Generic vertex attrib base types: FLOAT, INT, or UINT.
364 // Each base type is encoded into 2 bits, the lowest 2 bits for location 0, 360 // Each base type is encoded into 2 bits, the lowest 2 bits for location 0,
365 // the highest 2 bits for location (max_vertex_attribs - 1). 361 // the highest 2 bits for location (max_vertex_attribs - 1).
366 std::vector<uint32_t> generic_attrib_base_type_mask_; 362 std::vector<uint32_t> generic_attrib_base_type_mask_;
367 363
368 GLfloat line_width_min_ = 0.0f; 364 GLfloat line_width_min_ = 0.0f;
369 GLfloat line_width_max_ = 1.0f; 365 GLfloat line_width_max_ = 1.0f;
370 366
371 FeatureInfo* feature_info_; 367 FeatureInfo* feature_info_;
372 std::unique_ptr<ErrorState> error_state_; 368 std::unique_ptr<ErrorState> error_state_;
373 }; 369 };
374 370
375 } // namespace gles2 371 } // namespace gles2
376 } // namespace gpu 372 } // namespace gpu
377 373
378 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 374 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698