| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // used for testing only. If more things are reseved add them here. | 151 // used for testing only. If more things are reseved add them here. |
| 152 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult; | 152 static const unsigned int kStartingOffset = kMaxSizeOfSimpleResult; |
| 153 | 153 |
| 154 // Size in bytes to issue async flush for transfer buffer. | 154 // Size in bytes to issue async flush for transfer buffer. |
| 155 static const unsigned int kSizeToFlush = 256 * 1024; | 155 static const unsigned int kSizeToFlush = 256 * 1024; |
| 156 | 156 |
| 157 // The bucket used for results. Public for testing only. | 157 // The bucket used for results. Public for testing only. |
| 158 static const uint32_t kResultBucketId = 1; | 158 static const uint32_t kResultBucketId = 1; |
| 159 | 159 |
| 160 // Alignment of allocations. | 160 // Alignment of allocations. |
| 161 static const unsigned int kAlignment = 4; | 161 static const unsigned int kAlignment = 16; |
| 162 | 162 |
| 163 // GL names for the buffers used to emulate client side buffers. | 163 // GL names for the buffers used to emulate client side buffers. |
| 164 static const GLuint kClientSideArrayId = 0xFEDCBA98u; | 164 static const GLuint kClientSideArrayId = 0xFEDCBA98u; |
| 165 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u; | 165 static const GLuint kClientSideElementArrayId = 0xFEDCBA99u; |
| 166 | 166 |
| 167 // Number of swap buffers allowed before waiting. | 167 // Number of swap buffers allowed before waiting. |
| 168 static const size_t kMaxSwapBuffers = 2; | 168 static const size_t kMaxSwapBuffers = 2; |
| 169 | 169 |
| 170 GLES2Implementation(GLES2CmdHelper* helper, | 170 GLES2Implementation(GLES2CmdHelper* helper, |
| 171 ShareGroup* share_group, | 171 ShareGroup* share_group, |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 | 873 |
| 874 inline bool GLES2Implementation::GetTexParameterivHelper( | 874 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 875 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 876 return false; | 876 return false; |
| 877 } | 877 } |
| 878 | 878 |
| 879 } // namespace gles2 | 879 } // namespace gles2 |
| 880 } // namespace gpu | 880 } // namespace gpu |
| 881 | 881 |
| 882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 882 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |