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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 737943002: Update from https://crrev.com/304715 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 664
665 GLuint reserved_ids_[2]; 665 GLuint reserved_ids_[2];
666 666
667 // Current GL error bits. 667 // Current GL error bits.
668 uint32 error_bits_; 668 uint32 error_bits_;
669 669
670 // Whether or not to print debugging info. 670 // Whether or not to print debugging info.
671 bool debug_; 671 bool debug_;
672 672
673 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs. 673 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs.
674 bool lose_context_when_out_of_memory_; 674 const bool lose_context_when_out_of_memory_;
675 675
676 // Whether or not to support client side arrays. 676 // Whether or not to support client side arrays.
677 bool support_client_side_arrays_; 677 const bool support_client_side_arrays_;
678 678
679 // Used to check for single threaded access. 679 // Used to check for single threaded access.
680 int use_count_; 680 int use_count_;
681 681
682 // Map of GLenum to Strings for glGetString. We need to cache these because 682 // Map of GLenum to Strings for glGetString. We need to cache these because
683 // the pointer passed back to the client has to remain valid for eternity. 683 // the pointer passed back to the client has to remain valid for eternity.
684 typedef std::map<uint32, std::set<std::string> > GLStringMap; 684 typedef std::map<uint32, std::set<std::string> > GLStringMap;
685 GLStringMap gl_strings_; 685 GLStringMap gl_strings_;
686 686
687 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't 687 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 749
750 inline bool GLES2Implementation::GetTexParameterivHelper( 750 inline bool GLES2Implementation::GetTexParameterivHelper(
751 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 751 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
752 return false; 752 return false;
753 } 753 }
754 754
755 } // namespace gles2 755 } // namespace gles2
756 } // namespace gpu 756 } // namespace gpu
757 757
758 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 758 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | gpu/command_buffer/client/vertex_array_object_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698