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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 | 785 |
786 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs. | 786 // When true, the context is lost when a GL_OUT_OF_MEMORY error occurs. |
787 const bool lose_context_when_out_of_memory_; | 787 const bool lose_context_when_out_of_memory_; |
788 | 788 |
789 // Whether or not to support client side arrays. | 789 // Whether or not to support client side arrays. |
790 const bool support_client_side_arrays_; | 790 const bool support_client_side_arrays_; |
791 | 791 |
792 // Used to check for single threaded access. | 792 // Used to check for single threaded access. |
793 int use_count_; | 793 int use_count_; |
794 | 794 |
| 795 // Changed every time a flush or finish occurs. |
| 796 uint32_t flush_id_; |
| 797 |
795 // Maximum amount of extra memory from the mapped memory pool to use when | 798 // Maximum amount of extra memory from the mapped memory pool to use when |
796 // needing to transfer something exceeding the default transfer buffer. | 799 // needing to transfer something exceeding the default transfer buffer. |
797 // This should be 0 for low memory devices since they are already memory | 800 // This should be 0 for low memory devices since they are already memory |
798 // constrained. | 801 // constrained. |
799 const uint32_t max_extra_transfer_buffer_size_; | 802 const uint32_t max_extra_transfer_buffer_size_; |
800 | 803 |
801 // Set of strings returned from glGetString. We need to cache these because | 804 // Set of strings returned from glGetString. We need to cache these because |
802 // the pointer passed back to the client has to remain valid for eternity. | 805 // the pointer passed back to the client has to remain valid for eternity. |
803 std::set<std::string> gl_strings_; | 806 std::set<std::string> gl_strings_; |
804 | 807 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 | 887 |
885 inline bool GLES2Implementation::GetTexParameterivHelper( | 888 inline bool GLES2Implementation::GetTexParameterivHelper( |
886 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 889 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
887 return false; | 890 return false; |
888 } | 891 } |
889 | 892 |
890 } // namespace gles2 | 893 } // namespace gles2 |
891 } // namespace gpu | 894 } // namespace gpu |
892 | 895 |
893 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 896 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
OLD | NEW |