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

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 10535174: Addition of unpremultiply setting to GL_CHROMIUM_copy_texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressing review comments. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 'GL_STENCIL_PASS_DEPTH_FAIL', 193 'GL_STENCIL_PASS_DEPTH_FAIL',
194 'GL_STENCIL_PASS_DEPTH_PASS', 194 'GL_STENCIL_PASS_DEPTH_PASS',
195 'GL_STENCIL_REF', 195 'GL_STENCIL_REF',
196 'GL_STENCIL_TEST', 196 'GL_STENCIL_TEST',
197 'GL_STENCIL_VALUE_MASK', 197 'GL_STENCIL_VALUE_MASK',
198 'GL_STENCIL_WRITEMASK', 198 'GL_STENCIL_WRITEMASK',
199 'GL_SUBPIXEL_BITS', 199 'GL_SUBPIXEL_BITS',
200 'GL_TEXTURE_BINDING_2D', 200 'GL_TEXTURE_BINDING_2D',
201 'GL_TEXTURE_BINDING_CUBE_MAP', 201 'GL_TEXTURE_BINDING_CUBE_MAP',
202 'GL_UNPACK_ALIGNMENT', 202 'GL_UNPACK_ALIGNMENT',
203 'GL_UNPACK_FLIP_Y_CHROMIUM',
204 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM',
205 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM',
203 'GL_VIEWPORT', 206 'GL_VIEWPORT',
204 ], 207 ],
205 'invalid': [ 208 'invalid': [
206 'GL_FOG_HINT', 209 'GL_FOG_HINT',
207 ], 210 ],
208 }, 211 },
209 'GetTexParamTarget': { 212 'GetTexParamTarget': {
210 'type': 'GLenum', 213 'type': 'GLenum',
211 'valid': [ 214 'valid': [
212 'GL_TEXTURE_2D', 215 'GL_TEXTURE_2D',
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 'GL_DONT_CARE', 585 'GL_DONT_CARE',
583 ], 586 ],
584 }, 587 },
585 'PixelStore': { 588 'PixelStore': {
586 'type': 'GLenum', 589 'type': 'GLenum',
587 'valid': [ 590 'valid': [
588 'GL_PACK_ALIGNMENT', 591 'GL_PACK_ALIGNMENT',
589 'GL_UNPACK_ALIGNMENT', 592 'GL_UNPACK_ALIGNMENT',
590 'GL_UNPACK_FLIP_Y_CHROMIUM', 593 'GL_UNPACK_FLIP_Y_CHROMIUM',
591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', 594 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM',
595 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM',
592 ], 596 ],
593 'invalid': [ 597 'invalid': [
594 'GL_PACK_SWAP_BYTES', 598 'GL_PACK_SWAP_BYTES',
595 'GL_UNPACK_SWAP_BYTES', 599 'GL_UNPACK_SWAP_BYTES',
596 ], 600 ],
597 }, 601 },
598 'PixelStoreAlignment': { 602 'PixelStoreAlignment': {
599 'type': 'GLint', 603 'type': 'GLint',
600 'valid': [ 604 'valid': [
601 '1', 605 '1',
(...skipping 5658 matching lines...) Expand 10 before | Expand all | Expand 10 after
6260 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 6264 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
6261 6265
6262 if gen.errors > 0: 6266 if gen.errors > 0:
6263 print "%d errors" % gen.errors 6267 print "%d errors" % gen.errors
6264 return 1 6268 return 1
6265 return 0 6269 return 0
6266 6270
6267 6271
6268 if __name__ == '__main__': 6272 if __name__ == '__main__':
6269 sys.exit(main(sys.argv[1:])) 6273 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698