Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 10860082: Remove overly agressive ASSERTs on output GL parameters. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698