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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 739 |
740 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs. | 740 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs. |
741 const bool lose_context_when_out_of_memory_; | 741 const bool lose_context_when_out_of_memory_; |
742 | 742 |
743 // Whether or not to support client side arrays. | 743 // Whether or not to support client side arrays. |
744 const bool support_client_side_arrays_; | 744 const bool support_client_side_arrays_; |
745 | 745 |
746 // Used to check for single threaded access. | 746 // Used to check for single threaded access. |
747 int use_count_; | 747 int use_count_; |
748 | 748 |
| 749 // Maximum amount of extra memory from the mapped memory pool to use when |
| 750 // needing to transfer something exceeding the default transfer buffer. |
| 751 // This should be 0 for low memory devices since they are already memory |
| 752 // constrained. |
| 753 const uint32_t max_extra_transfer_buffer_size_; |
| 754 |
749 // Map of GLenum to Strings for glGetString. We need to cache these because | 755 // Map of GLenum to Strings for glGetString. We need to cache these because |
750 // the pointer passed back to the client has to remain valid for eternity. | 756 // the pointer passed back to the client has to remain valid for eternity. |
751 typedef std::map<uint32, std::set<std::string> > GLStringMap; | 757 typedef std::map<uint32, std::set<std::string> > GLStringMap; |
752 GLStringMap gl_strings_; | 758 GLStringMap gl_strings_; |
753 | 759 |
754 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't | 760 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't |
755 // have an enum for this so handle it separately. | 761 // have an enum for this so handle it separately. |
756 std::set<std::string> requestable_extensions_set_; | 762 std::set<std::string> requestable_extensions_set_; |
757 | 763 |
758 typedef std::map<const void*, MappedBuffer> MappedBufferMap; | 764 typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 833 |
828 inline bool GLES2Implementation::GetTexParameterivHelper( | 834 inline bool GLES2Implementation::GetTexParameterivHelper( |
829 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 835 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
830 return false; | 836 return false; |
831 } | 837 } |
832 | 838 |
833 } // namespace gles2 | 839 } // namespace gles2 |
834 } // namespace gpu | 840 } // namespace gpu |
835 | 841 |
836 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 842 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |