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

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

Issue 14308014: Clean up of GLES2 Command Decoder by moving some of the error state into a separate class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge error. Created 7 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/buffer_manager.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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 }, 1570 },
1571 'GetBufferParameteriv': { 1571 'GetBufferParameteriv': {
1572 'type': 'GETn', 1572 'type': 'GETn',
1573 'result': ['SizedResult<GLint>'], 1573 'result': ['SizedResult<GLint>'],
1574 'decoder_func': 'DoGetBufferParameteriv', 1574 'decoder_func': 'DoGetBufferParameteriv',
1575 'expectation': False, 1575 'expectation': False,
1576 'shadowed': True, 1576 'shadowed': True,
1577 }, 1577 },
1578 'GetError': { 1578 'GetError': {
1579 'type': 'Is', 1579 'type': 'Is',
1580 'decoder_func': 'GetGLError', 1580 'decoder_func': 'GetErrorState()->GetGLError',
1581 'impl_func': False, 1581 'impl_func': False,
1582 'result': ['GLenum'], 1582 'result': ['GLenum'],
1583 'client_test': False, 1583 'client_test': False,
1584 }, 1584 },
1585 'GetFloatv': { 1585 'GetFloatv': {
1586 'type': 'GETn', 1586 'type': 'GETn',
1587 'result': ['SizedResult<GLfloat>'], 1587 'result': ['SizedResult<GLfloat>'],
1588 'decoder_func': 'DoGetFloatv', 1588 'decoder_func': 'DoGetFloatv',
1589 'gl_test_func': 'glGetFloatv', 1589 'gl_test_func': 'glGetFloatv',
1590 }, 1590 },
(...skipping 6071 matching lines...) Expand 10 before | Expand all | Expand 10 after
7662 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") 7662 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h")
7663 7663
7664 if gen.errors > 0: 7664 if gen.errors > 0:
7665 print "%d errors" % gen.errors 7665 print "%d errors" % gen.errors
7666 return 1 7666 return 1
7667 return 0 7667 return 0
7668 7668
7669 7669
7670 if __name__ == '__main__': 7670 if __name__ == '__main__':
7671 sys.exit(main(sys.argv[1:])) 7671 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698