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

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

Issue 477623004: command_buffer: Support instanced path rendering in gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-03-path-funcs
Patch Set: fix msvc signedness warning in an unittest Created 5 years, 1 month 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/gl2extchromium.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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 ], 1555 ],
1556 }, 1556 },
1557 'PathFillMode': { 1557 'PathFillMode': {
1558 'type': 'GLenum', 1558 'type': 'GLenum',
1559 'valid': [ 1559 'valid': [
1560 'GL_INVERT', 1560 'GL_INVERT',
1561 'GL_COUNT_UP_CHROMIUM', 1561 'GL_COUNT_UP_CHROMIUM',
1562 'GL_COUNT_DOWN_CHROMIUM', 1562 'GL_COUNT_DOWN_CHROMIUM',
1563 ], 1563 ],
1564 }, 1564 },
1565 'PathInstancedCoverMode': {
1566 'type': 'GLenum',
1567 'valid': [
1568 'GL_CONVEX_HULL_CHROMIUM',
1569 'GL_BOUNDING_BOX_CHROMIUM',
1570 'GL_BOUNDING_BOX_OF_BOUNDING_BOXES_CHROMIUM',
1571 ],
1572 },
1573 'PathNameType': {
1574 'type': 'GLenum',
1575 'valid': [
1576 'GL_UNSIGNED_BYTE',
1577 'GL_BYTE',
1578 'GL_UNSIGNED_SHORT',
1579 'GL_SHORT',
1580 'GL_UNSIGNED_INT',
1581 'GL_INT',
1582 ],
1583 },
1565 'PathParameter': { 1584 'PathParameter': {
1566 'type': 'GLenum', 1585 'type': 'GLenum',
1567 'valid': [ 1586 'valid': [
1568 'GL_PATH_STROKE_WIDTH_CHROMIUM', 1587 'GL_PATH_STROKE_WIDTH_CHROMIUM',
1569 'GL_PATH_END_CAPS_CHROMIUM', 1588 'GL_PATH_END_CAPS_CHROMIUM',
1570 'GL_PATH_JOIN_STYLE_CHROMIUM', 1589 'GL_PATH_JOIN_STYLE_CHROMIUM',
1571 'GL_PATH_MITER_LIMIT_CHROMIUM', 1590 'GL_PATH_MITER_LIMIT_CHROMIUM',
1572 'GL_PATH_STROKE_BOUND_CHROMIUM', 1591 'GL_PATH_STROKE_BOUND_CHROMIUM',
1573 ] 1592 ]
1574 }, 1593 },
1575 'PathParameterCapValues': { 1594 'PathParameterCapValues': {
1576 'type': 'GLint', 1595 'type': 'GLint',
1577 'valid': [ 1596 'valid': [
1578 'GL_FLAT', 1597 'GL_FLAT',
1579 'GL_SQUARE_CHROMIUM', 1598 'GL_SQUARE_CHROMIUM',
1580 'GL_ROUND_CHROMIUM', 1599 'GL_ROUND_CHROMIUM',
1581 ] 1600 ]
1582 }, 1601 },
1583 'PathParameterJoinValues': { 1602 'PathParameterJoinValues': {
1584 'type': 'GLint', 1603 'type': 'GLint',
1585 'valid': [ 1604 'valid': [
1586 'GL_MITER_REVERT_CHROMIUM', 1605 'GL_MITER_REVERT_CHROMIUM',
1587 'GL_BEVEL_CHROMIUM', 1606 'GL_BEVEL_CHROMIUM',
1588 'GL_ROUND_CHROMIUM', 1607 'GL_ROUND_CHROMIUM',
1589 ] 1608 ]
1590 }, 1609 },
1610 'PathTransformType': {
1611 'type': 'GLenum',
1612 'valid': [
1613 'GL_NONE',
1614 'GL_TRANSLATE_X_CHROMIUM',
1615 'GL_TRANSLATE_Y_CHROMIUM',
1616 'GL_TRANSLATE_2D_CHROMIUM',
1617 'GL_TRANSLATE_3D_CHROMIUM',
1618 'GL_AFFINE_2D_CHROMIUM',
1619 'GL_AFFINE_3D_CHROMIUM',
1620 'GL_TRANSPOSE_AFFINE_2D_CHROMIUM',
1621 'GL_TRANSPOSE_AFFINE_3D_CHROMIUM',
1622 ],
1623 },
1591 'ReadPixelType': { 1624 'ReadPixelType': {
1592 'type': 'GLenum', 1625 'type': 'GLenum',
1593 'valid': [ 1626 'valid': [
1594 'GL_UNSIGNED_BYTE', 1627 'GL_UNSIGNED_BYTE',
1595 'GL_UNSIGNED_SHORT_5_6_5', 1628 'GL_UNSIGNED_SHORT_5_6_5',
1596 'GL_UNSIGNED_SHORT_4_4_4_4', 1629 'GL_UNSIGNED_SHORT_4_4_4_4',
1597 'GL_UNSIGNED_SHORT_5_5_5_1', 1630 'GL_UNSIGNED_SHORT_5_5_5_1',
1598 ], 1631 ],
1599 'valid_es3': [ 1632 'valid_es3': [
1600 'GL_BYTE', 1633 'GL_BYTE',
(...skipping 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after
4223 'chromium': True, 4256 'chromium': True,
4224 'extension': 'CHROMIUM_path_rendering', 4257 'extension': 'CHROMIUM_path_rendering',
4225 'extension_flag': 'chromium_path_rendering', 4258 'extension_flag': 'chromium_path_rendering',
4226 }, 4259 },
4227 'StencilThenCoverStrokePathCHROMIUM': { 4260 'StencilThenCoverStrokePathCHROMIUM': {
4228 'type': 'Custom', 4261 'type': 'Custom',
4229 'chromium': True, 4262 'chromium': True,
4230 'extension': 'CHROMIUM_path_rendering', 4263 'extension': 'CHROMIUM_path_rendering',
4231 'extension_flag': 'chromium_path_rendering', 4264 'extension_flag': 'chromium_path_rendering',
4232 }, 4265 },
4233 4266 'StencilFillPathInstancedCHROMIUM': {
4267 'type': 'Custom',
4268 'chromium': True,
4269 'extension': 'CHROMIUM_path_rendering',
4270 'extension_flag': 'chromium_path_rendering',
4271 },
4272 'StencilStrokePathInstancedCHROMIUM': {
4273 'type': 'Custom',
4274 'chromium': True,
4275 'extension': 'CHROMIUM_path_rendering',
4276 'extension_flag': 'chromium_path_rendering',
4277 },
4278 'CoverFillPathInstancedCHROMIUM': {
4279 'type': 'Custom',
4280 'chromium': True,
4281 'extension': 'CHROMIUM_path_rendering',
4282 'extension_flag': 'chromium_path_rendering',
4283 },
4284 'CoverStrokePathInstancedCHROMIUM': {
4285 'type': 'Custom',
4286 'chromium': True,
4287 'extension': 'CHROMIUM_path_rendering',
4288 'extension_flag': 'chromium_path_rendering',
4289 },
4290 'StencilThenCoverFillPathInstancedCHROMIUM': {
4291 'type': 'Custom',
4292 'chromium': True,
4293 'extension': 'CHROMIUM_path_rendering',
4294 'extension_flag': 'chromium_path_rendering',
4295 },
4296 'StencilThenCoverStrokePathInstancedCHROMIUM': {
4297 'type': 'Custom',
4298 'chromium': True,
4299 'extension': 'CHROMIUM_path_rendering',
4300 'extension_flag': 'chromium_path_rendering',
4301 },
4234 } 4302 }
4235 4303
4236 4304
4237 def Grouper(n, iterable, fillvalue=None): 4305 def Grouper(n, iterable, fillvalue=None):
4238 """Collect data into fixed-length chunks or blocks""" 4306 """Collect data into fixed-length chunks or blocks"""
4239 args = [iter(iterable)] * n 4307 args = [iter(iterable)] * n
4240 return itertools.izip_longest(fillvalue=fillvalue, *args) 4308 return itertools.izip_longest(fillvalue=fillvalue, *args)
4241 4309
4242 4310
4243 def SplitWords(input_string): 4311 def SplitWords(input_string):
(...skipping 6785 matching lines...) Expand 10 before | Expand all | Expand 10 after
11029 Format(gen.generated_cpp_filenames) 11097 Format(gen.generated_cpp_filenames)
11030 11098
11031 if gen.errors > 0: 11099 if gen.errors > 0:
11032 print "%d errors" % gen.errors 11100 print "%d errors" % gen.errors
11033 return 1 11101 return 1
11034 return 0 11102 return 0
11035 11103
11036 11104
11037 if __name__ == '__main__': 11105 if __name__ == '__main__':
11038 sys.exit(main(sys.argv[1:])) 11106 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.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