Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 2722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2733 }, | 2733 }, |
| 2734 }, | 2734 }, |
| 2735 'Hint': { | 2735 'Hint': { |
| 2736 'type': 'StateSetNamedParameter', | 2736 'type': 'StateSetNamedParameter', |
| 2737 'state': 'Hint', | 2737 'state': 'Hint', |
| 2738 }, | 2738 }, |
| 2739 'CullFace': {'type': 'StateSet', 'state': 'CullFace'}, | 2739 'CullFace': {'type': 'StateSet', 'state': 'CullFace'}, |
| 2740 'FrontFace': {'type': 'StateSet', 'state': 'FrontFace'}, | 2740 'FrontFace': {'type': 'StateSet', 'state': 'FrontFace'}, |
| 2741 'DepthFunc': {'type': 'StateSet', 'state': 'DepthFunc'}, | 2741 'DepthFunc': {'type': 'StateSet', 'state': 'DepthFunc'}, |
| 2742 'LineWidth': { | 2742 'LineWidth': { |
| 2743 'type': 'StateSet', | 2743 'type': 'Custom', |
|
piman
2016/11/07 19:38:01
Rather than using "Custom" which completely remove
| |
| 2744 'state': 'LineWidth', | 2744 'state': 'LineWidth', |
| 2745 'decoder_func': 'DoLineWidth', | |
| 2746 'valid_args': { | 2745 'valid_args': { |
| 2747 '0': '2.0f' | 2746 '0': '2.0f' |
| 2748 }, | 2747 }, |
| 2749 }, | 2748 }, |
| 2750 'PolygonOffset': { | 2749 'PolygonOffset': { |
| 2751 'type': 'StateSet', | 2750 'type': 'StateSet', |
| 2752 'state': 'PolygonOffset', | 2751 'state': 'PolygonOffset', |
| 2753 }, | 2752 }, |
| 2754 'DeleteBuffers': { | 2753 'DeleteBuffers': { |
| 2755 'type': 'DELn', | 2754 'type': 'DELn', |
| (...skipping 8419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11175 Format(gen.generated_cpp_filenames) | 11174 Format(gen.generated_cpp_filenames) |
| 11176 | 11175 |
| 11177 if gen.errors > 0: | 11176 if gen.errors > 0: |
| 11178 print "%d errors" % gen.errors | 11177 print "%d errors" % gen.errors |
| 11179 return 1 | 11178 return 1 |
| 11180 return 0 | 11179 return 0 |
| 11181 | 11180 |
| 11182 | 11181 |
| 11183 if __name__ == '__main__': | 11182 if __name__ == '__main__': |
| 11184 sys.exit(main(sys.argv[1:])) | 11183 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |