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

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: fix 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
« no previous file with comments | « no previous file | gpu/command_buffer/client/client_context_state.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 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 'impl_func': False, 4007 'impl_func': False,
4008 'client_test': False, 4008 'client_test': False,
4009 'es3': True, 4009 'es3': True,
4010 'trace_level': 1, 4010 'trace_level': 1,
4011 }, 4011 },
4012 'Scissor': { 4012 'Scissor': {
4013 'type': 'StateSet', 4013 'type': 'StateSet',
4014 'state': 'Scissor', 4014 'state': 'Scissor',
4015 }, 4015 },
4016 'Viewport': { 4016 'Viewport': {
4017 'impl_func': False,
4017 'decoder_func': 'DoViewport', 4018 'decoder_func': 'DoViewport',
4018 }, 4019 },
4019 'ResizeCHROMIUM': { 4020 'ResizeCHROMIUM': {
4020 'type': 'Custom', 4021 'type': 'Custom',
4021 'impl_func': False, 4022 'impl_func': False,
4022 'extension': True, 4023 'extension': True,
4023 'trace_level': 1, 4024 'trace_level': 1,
4024 }, 4025 },
4025 'GetRequestableExtensionsCHROMIUM': { 4026 'GetRequestableExtensionsCHROMIUM': {
4026 'type': 'Custom', 4027 'type': 'Custom',
(...skipping 7177 matching lines...) Expand 10 before | Expand all | Expand 10 after
11204 Format(gen.generated_cpp_filenames) 11205 Format(gen.generated_cpp_filenames)
11205 11206
11206 if gen.errors > 0: 11207 if gen.errors > 0:
11207 print "%d errors" % gen.errors 11208 print "%d errors" % gen.errors
11208 return 1 11209 return 1
11209 return 0 11210 return 0
11210 11211
11211 11212
11212 if __name__ == '__main__': 11213 if __name__ == '__main__':
11213 sys.exit(main(sys.argv[1:])) 11214 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/client_context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698