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

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

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_messages.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 os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 'client_test': False, 1632 'client_test': False,
1633 'gl_test_func': 'glGetQueryiv', 1633 'gl_test_func': 'glGetQueryiv',
1634 'pepper_interface': 'Query', 1634 'pepper_interface': 'Query',
1635 }, 1635 },
1636 'GetQueryObjectuivEXT': { 1636 'GetQueryObjectuivEXT': {
1637 'gen_cmd': False, 1637 'gen_cmd': False,
1638 'client_test': False, 1638 'client_test': False,
1639 'gl_test_func': 'glGetQueryObjectuiv', 1639 'gl_test_func': 'glGetQueryObjectuiv',
1640 'pepper_interface': 'Query', 1640 'pepper_interface': 'Query',
1641 }, 1641 },
1642 'DiscardBackbufferCHROMIUM': {
1643 'type': 'Custom',
1644 'impl_func': False,
1645 'unit_test': False,
1646 'extension': True,
1647 'chromium': True,
1648 },
1649 'EnsureBackbufferCHROMIUM': {
1650 'type': 'Custom',
1651 'impl_func': False,
1652 'unit_test': False,
1653 'extension': True,
1654 'chromium': True,
1655 },
1642 } 1656 }
1643 1657
1644 1658
1645 def SplitWords(input_string): 1659 def SplitWords(input_string):
1646 """Transforms a input_string into a list of lower-case components. 1660 """Transforms a input_string into a list of lower-case components.
1647 1661
1648 Args: 1662 Args:
1649 input_string: the input string. 1663 input_string: the input string.
1650 1664
1651 Returns: 1665 Returns:
(...skipping 4553 matching lines...) Expand 10 before | Expand all | Expand 10 after
6205 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 6219 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
6206 6220
6207 if gen.errors > 0: 6221 if gen.errors > 0:
6208 print "%d errors" % gen.errors 6222 print "%d errors" % gen.errors
6209 return 1 6223 return 1
6210 return 0 6224 return 0
6211 6225
6212 6226
6213 if __name__ == '__main__': 6227 if __name__ == '__main__':
6214 sys.exit(main(sys.argv[1:])) 6228 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.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