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

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: add missing test 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
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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 }, 1546 },
1547 }, 1547 },
1548 'BlendFunc': { 1548 'BlendFunc': {
1549 'type': 'StateSetRGBAlpha', 1549 'type': 'StateSetRGBAlpha',
1550 'state': 'BlendFunc', 1550 'state': 'BlendFunc',
1551 }, 1551 },
1552 'BlendFuncSeparate': { 1552 'BlendFuncSeparate': {
1553 'type': 'StateSet', 1553 'type': 'StateSet',
1554 'state': 'BlendFunc', 1554 'state': 'BlendFunc',
1555 }, 1555 },
1556 'BlendBarrierNV': {
1557 'gl_test_func': 'glBlendBarrierNV',
piman 2014/10/16 20:13:29 At the command buffer level, I would prefer that w
Erik Dahlström (inactive) 2014/10/17 15:33:17 Agreed, will fix. Note that this also means I'll h
1558 'extension': True,
1559 'extension_flag': 'blend_equation_advanced',
1560 'client_test': False,
1561 },
1556 'SampleCoverage': {'decoder_func': 'DoSampleCoverage'}, 1562 'SampleCoverage': {'decoder_func': 'DoSampleCoverage'},
1557 'StencilFunc': { 1563 'StencilFunc': {
1558 'type': 'StateSetFrontBack', 1564 'type': 'StateSetFrontBack',
1559 'state': 'StencilFunc', 1565 'state': 'StencilFunc',
1560 }, 1566 },
1561 'StencilFuncSeparate': { 1567 'StencilFuncSeparate': {
1562 'type': 'StateSetFrontBackSeparate', 1568 'type': 'StateSetFrontBackSeparate',
1563 'state': 'StencilFunc', 1569 'state': 'StencilFunc',
1564 }, 1570 },
1565 'StencilOp': { 1571 'StencilOp': {
(...skipping 7077 matching lines...) Expand 10 before | Expand all | Expand 10 after
8643 Format(gen.generated_cpp_filenames) 8649 Format(gen.generated_cpp_filenames)
8644 8650
8645 if gen.errors > 0: 8651 if gen.errors > 0:
8646 print "%d errors" % gen.errors 8652 print "%d errors" % gen.errors
8647 return 1 8653 return 1
8648 return 0 8654 return 0
8649 8655
8650 8656
8651 if __name__ == '__main__': 8657 if __name__ == '__main__':
8652 sys.exit(main(sys.argv[1:])) 8658 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698