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

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

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: better?better! Created 5 years, 6 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 2681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2692 'result': ['SizedResult<GLfloat>'], 2692 'result': ['SizedResult<GLfloat>'],
2693 'decoder_func': 'DoGetFloatv', 2693 'decoder_func': 'DoGetFloatv',
2694 'gl_test_func': 'glGetFloatv', 2694 'gl_test_func': 'glGetFloatv',
2695 }, 2695 },
2696 'GetFramebufferAttachmentParameteriv': { 2696 'GetFramebufferAttachmentParameteriv': {
2697 'type': 'GETn', 2697 'type': 'GETn',
2698 'decoder_func': 'DoGetFramebufferAttachmentParameteriv', 2698 'decoder_func': 'DoGetFramebufferAttachmentParameteriv',
2699 'gl_test_func': 'glGetFramebufferAttachmentParameterivEXT', 2699 'gl_test_func': 'glGetFramebufferAttachmentParameterivEXT',
2700 'result': ['SizedResult<GLint>'], 2700 'result': ['SizedResult<GLint>'],
2701 }, 2701 },
2702 'GetGraphicsResetStatusKHR': {
2703 'extension': True,
2704 'client_test': False,
2705 'gen_cmd': False,
danakj 2015/06/08 22:02:51 This is the one weird trick to keep the function o
2706 'trace_level': 1,
2707 },
2702 'GetInteger64v': { 2708 'GetInteger64v': {
2703 'type': 'GETn', 2709 'type': 'GETn',
2704 'result': ['SizedResult<GLint64>'], 2710 'result': ['SizedResult<GLint64>'],
2705 'client_test': False, 2711 'client_test': False,
2706 'decoder_func': 'DoGetInteger64v', 2712 'decoder_func': 'DoGetInteger64v',
2707 'unsafe': True 2713 'unsafe': True
2708 }, 2714 },
2709 'GetIntegerv': { 2715 'GetIntegerv': {
2710 'type': 'GETn', 2716 'type': 'GETn',
2711 'result': ['SizedResult<GLint>'], 2717 'result': ['SizedResult<GLint>'],
(...skipping 8359 matching lines...) Expand 10 before | Expand all | Expand 10 after
11071 Format(gen.generated_cpp_filenames) 11077 Format(gen.generated_cpp_filenames)
11072 11078
11073 if gen.errors > 0: 11079 if gen.errors > 0:
11074 print "%d errors" % gen.errors 11080 print "%d errors" % gen.errors
11075 return 1 11081 return 1
11076 return 0 11082 return 0
11077 11083
11078 11084
11079 if __name__ == '__main__': 11085 if __name__ == '__main__':
11080 sys.exit(main(sys.argv[1:])) 11086 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698