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 shared memory to use when needing to transfer | |
no sievers
2015/10/19 15:55:04
nit: maybe say 'extra memory from the mapped memor
David Yen
2015/10/19 16:02:18
Done.
| |
750 // something exceeding the default transfer buffer. This should be 0 for | |
751 // low memory devices since they are already memory constrained. | |
752 const uint32_t max_extra_transfer_buffer_size_; | |
753 | |
749 // Map of GLenum to Strings for glGetString. We need to cache these because | 754 // 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. | 755 // the pointer passed back to the client has to remain valid for eternity. |
751 typedef std::map<uint32, std::set<std::string> > GLStringMap; | 756 typedef std::map<uint32, std::set<std::string> > GLStringMap; |
752 GLStringMap gl_strings_; | 757 GLStringMap gl_strings_; |
753 | 758 |
754 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't | 759 // Similar cache for glGetRequestableExtensionsCHROMIUM. We don't |
755 // have an enum for this so handle it separately. | 760 // have an enum for this so handle it separately. |
756 std::set<std::string> requestable_extensions_set_; | 761 std::set<std::string> requestable_extensions_set_; |
757 | 762 |
758 typedef std::map<const void*, MappedBuffer> MappedBufferMap; | 763 typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
827 | 832 |
828 inline bool GLES2Implementation::GetTexParameterivHelper( | 833 inline bool GLES2Implementation::GetTexParameterivHelper( |
829 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 834 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
830 return false; | 835 return false; |
831 } | 836 } |
832 | 837 |
833 } // namespace gles2 | 838 } // namespace gles2 |
834 } // namespace gpu | 839 } // namespace gpu |
835 | 840 |
836 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 841 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |