| 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 <map> | 10 #include <map> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #define GPU_CLIENT_DCHECK(v) DCHECK(v) | 69 #define GPU_CLIENT_DCHECK(v) DCHECK(v) |
| 70 #else | 70 #else |
| 71 #define GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION_ASSERT(v) ASSERT(v) | 71 #define GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION_ASSERT(v) ASSERT(v) |
| 72 #define GPU_CLIENT_DCHECK(v) ASSERT(v) | 72 #define GPU_CLIENT_DCHECK(v) ASSERT(v) |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 #define GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(type, ptr) \ | 75 #define GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(type, ptr) \ |
| 76 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION_ASSERT(ptr && \ | 76 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION_ASSERT(ptr && \ |
| 77 (ptr[0] == static_cast<type>(0) || ptr[0] == static_cast<type>(-1))); | 77 (ptr[0] == static_cast<type>(0) || ptr[0] == static_cast<type>(-1))); |
| 78 | 78 |
| 79 #define GPU_CLIENT_VALIDATE_DESTINATION_OPTIONAL_INITALIZATION(type, ptr) \ |
| 80 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION_ASSERT(!ptr || \ |
| 81 (ptr[0] == static_cast<type>(0) || ptr[0] == static_cast<type>(-1))); |
| 82 |
| 79 struct GLUniformDefinitionCHROMIUM; | 83 struct GLUniformDefinitionCHROMIUM; |
| 80 | 84 |
| 81 namespace gpu { | 85 namespace gpu { |
| 82 | 86 |
| 83 class MappedMemoryManager; | 87 class MappedMemoryManager; |
| 84 class ScopedTransferBufferPtr; | 88 class ScopedTransferBufferPtr; |
| 85 class TransferBufferInterface; | 89 class TransferBufferInterface; |
| 86 | 90 |
| 87 namespace gles2 { | 91 namespace gles2 { |
| 88 | 92 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 602 |
| 599 inline bool GLES2Implementation::GetTexParameterivHelper( | 603 inline bool GLES2Implementation::GetTexParameterivHelper( |
| 600 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { | 604 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { |
| 601 return false; | 605 return false; |
| 602 } | 606 } |
| 603 | 607 |
| 604 } // namespace gles2 | 608 } // namespace gles2 |
| 605 } // namespace gpu | 609 } // namespace gpu |
| 606 | 610 |
| 607 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ | 611 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ |
| OLD | NEW |