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

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

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix feature_info_unittest Created 6 years, 2 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
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 }, 1539 },
1540 }, 1540 },
1541 'BlendFunc': { 1541 'BlendFunc': {
1542 'type': 'StateSetRGBAlpha', 1542 'type': 'StateSetRGBAlpha',
1543 'state': 'BlendFunc', 1543 'state': 'BlendFunc',
1544 }, 1544 },
1545 'BlendFuncSeparate': { 1545 'BlendFuncSeparate': {
1546 'type': 'StateSet', 1546 'type': 'StateSet',
1547 'state': 'BlendFunc', 1547 'state': 'BlendFunc',
1548 }, 1548 },
1549 'BlendBarrierKHR': {
1550 'gl_test_func': 'glBlendBarrierKHR',
1551 'extension': True,
1552 'extension_flag': 'blend_equation_advanced',
1553 'client_test': False,
1554 },
1549 'SampleCoverage': {'decoder_func': 'DoSampleCoverage'}, 1555 'SampleCoverage': {'decoder_func': 'DoSampleCoverage'},
1550 'StencilFunc': { 1556 'StencilFunc': {
1551 'type': 'StateSetFrontBack', 1557 'type': 'StateSetFrontBack',
1552 'state': 'StencilFunc', 1558 'state': 'StencilFunc',
1553 }, 1559 },
1554 'StencilFuncSeparate': { 1560 'StencilFuncSeparate': {
1555 'type': 'StateSetFrontBackSeparate', 1561 'type': 'StateSetFrontBackSeparate',
1556 'state': 'StencilFunc', 1562 'state': 'StencilFunc',
1557 }, 1563 },
1558 'StencilOp': { 1564 'StencilOp': {
(...skipping 7067 matching lines...) Expand 10 before | Expand all | Expand 10 after
8626 Format(gen.generated_cpp_filenames) 8632 Format(gen.generated_cpp_filenames)
8627 8633
8628 if gen.errors > 0: 8634 if gen.errors > 0:
8629 print "%d errors" % gen.errors 8635 print "%d errors" % gen.errors
8630 return 1 8636 return 1
8631 return 0 8637 return 0
8632 8638
8633 8639
8634 if __name__ == '__main__': 8640 if __name__ == '__main__':
8635 sys.exit(main(sys.argv[1:])) 8641 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698