| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |