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

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

Issue 2558933003: Cache GL's viewport on the GPU command buffer client side. (Closed)
Patch Set: Created 4 years 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 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after
3999 'impl_func': False, 3999 'impl_func': False,
4000 'client_test': False, 4000 'client_test': False,
4001 'es3': True, 4001 'es3': True,
4002 'trace_level': 1, 4002 'trace_level': 1,
4003 }, 4003 },
4004 'Scissor': { 4004 'Scissor': {
4005 'type': 'StateSet', 4005 'type': 'StateSet',
4006 'state': 'Scissor', 4006 'state': 'Scissor',
4007 }, 4007 },
4008 'Viewport': { 4008 'Viewport': {
4009 'impl_func': False,
4009 'decoder_func': 'DoViewport', 4010 'decoder_func': 'DoViewport',
4010 }, 4011 },
4011 'ResizeCHROMIUM': { 4012 'ResizeCHROMIUM': {
4012 'type': 'Custom', 4013 'type': 'Custom',
4013 'impl_func': False, 4014 'impl_func': False,
4014 'extension': True, 4015 'extension': True,
4015 'trace_level': 1, 4016 'trace_level': 1,
4016 }, 4017 },
4017 'GetRequestableExtensionsCHROMIUM': { 4018 'GetRequestableExtensionsCHROMIUM': {
4018 'type': 'Custom', 4019 'type': 'Custom',
(...skipping 7177 matching lines...) Expand 10 before | Expand all | Expand 10 after
11196 Format(gen.generated_cpp_filenames) 11197 Format(gen.generated_cpp_filenames)
11197 11198
11198 if gen.errors > 0: 11199 if gen.errors > 0:
11199 print "%d errors" % gen.errors 11200 print "%d errors" % gen.errors
11200 return 1 11201 return 1
11201 return 0 11202 return 0
11202 11203
11203 11204
11204 if __name__ == '__main__': 11205 if __name__ == '__main__':
11205 sys.exit(main(sys.argv[1:])) 11206 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698