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

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

Issue 1203793003: Remove flip_y, premultiply_alpha, unmultiply_alpha support in command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 5 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 #!/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 itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 'GL_SAMPLE_COVERAGE_VALUE', 754 'GL_SAMPLE_COVERAGE_VALUE',
755 'GL_SAMPLES', 755 'GL_SAMPLES',
756 'GL_SCISSOR_BOX', 756 'GL_SCISSOR_BOX',
757 'GL_SHADER_BINARY_FORMATS', 757 'GL_SHADER_BINARY_FORMATS',
758 'GL_SHADER_COMPILER', 758 'GL_SHADER_COMPILER',
759 'GL_SUBPIXEL_BITS', 759 'GL_SUBPIXEL_BITS',
760 'GL_STENCIL_BITS', 760 'GL_STENCIL_BITS',
761 'GL_TEXTURE_BINDING_2D', 761 'GL_TEXTURE_BINDING_2D',
762 'GL_TEXTURE_BINDING_CUBE_MAP', 762 'GL_TEXTURE_BINDING_CUBE_MAP',
763 'GL_UNPACK_ALIGNMENT', 763 'GL_UNPACK_ALIGNMENT',
764 'GL_UNPACK_FLIP_Y_CHROMIUM',
765 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM',
766 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM',
767 'GL_BIND_GENERATES_RESOURCE_CHROMIUM', 764 'GL_BIND_GENERATES_RESOURCE_CHROMIUM',
768 # we can add this because we emulate it if the driver does not support it. 765 # we can add this because we emulate it if the driver does not support it.
769 'GL_VERTEX_ARRAY_BINDING_OES', 766 'GL_VERTEX_ARRAY_BINDING_OES',
770 'GL_VIEWPORT', 767 'GL_VIEWPORT',
771 ], 768 ],
772 'valid_es3': [ 769 'valid_es3': [
773 'GL_COPY_READ_BUFFER_BINDING', 770 'GL_COPY_READ_BUFFER_BINDING',
774 'GL_COPY_WRITE_BUFFER_BINDING', 771 'GL_COPY_WRITE_BUFFER_BINDING',
775 'GL_DRAW_BUFFER0', 772 'GL_DRAW_BUFFER0',
776 'GL_DRAW_BUFFER1', 773 'GL_DRAW_BUFFER1',
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 'GL_FASTEST', 1402 'GL_FASTEST',
1406 'GL_NICEST', 1403 'GL_NICEST',
1407 'GL_DONT_CARE', 1404 'GL_DONT_CARE',
1408 ], 1405 ],
1409 }, 1406 },
1410 'PixelStore': { 1407 'PixelStore': {
1411 'type': 'GLenum', 1408 'type': 'GLenum',
1412 'valid': [ 1409 'valid': [
1413 'GL_PACK_ALIGNMENT', 1410 'GL_PACK_ALIGNMENT',
1414 'GL_UNPACK_ALIGNMENT', 1411 'GL_UNPACK_ALIGNMENT',
1415 'GL_UNPACK_FLIP_Y_CHROMIUM',
1416 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM',
1417 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM',
1418 ], 1412 ],
1419 'valid_es3': [ 1413 'valid_es3': [
1420 'GL_PACK_ROW_LENGTH', 1414 'GL_PACK_ROW_LENGTH',
1421 'GL_PACK_SKIP_PIXELS', 1415 'GL_PACK_SKIP_PIXELS',
1422 'GL_PACK_SKIP_ROWS', 1416 'GL_PACK_SKIP_ROWS',
1423 'GL_UNPACK_ROW_LENGTH', 1417 'GL_UNPACK_ROW_LENGTH',
1424 'GL_UNPACK_IMAGE_HEIGHT', 1418 'GL_UNPACK_IMAGE_HEIGHT',
1425 'GL_UNPACK_SKIP_PIXELS', 1419 'GL_UNPACK_SKIP_PIXELS',
1426 'GL_UNPACK_SKIP_ROWS', 1420 'GL_UNPACK_SKIP_ROWS',
1427 'GL_UNPACK_SKIP_IMAGES', 1421 'GL_UNPACK_SKIP_IMAGES',
(...skipping 9671 matching lines...) Expand 10 before | Expand all | Expand 10 after
11099 Format(gen.generated_cpp_filenames) 11093 Format(gen.generated_cpp_filenames)
11100 11094
11101 if gen.errors > 0: 11095 if gen.errors > 0:
11102 print "%d errors" % gen.errors 11096 print "%d errors" % gen.errors
11103 return 1 11097 return 1
11104 return 0 11098 return 0
11105 11099
11106 11100
11107 if __name__ == '__main__': 11101 if __name__ == '__main__':
11108 sys.exit(main(sys.argv[1:])) 11102 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698