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

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

Issue 2163493002: Break glScheduleCALayerCHROMIUM into smaller functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_cleanup_calayeroverlay
Patch Set: Comments from piman. Created 4 years, 5 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 | « gpu/GLES2/gl2extchromium.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 itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after
4409 'trace_level': 2, 4409 'trace_level': 2,
4410 }, 4410 },
4411 'ScheduleOverlayPlaneCHROMIUM': { 4411 'ScheduleOverlayPlaneCHROMIUM': {
4412 'type': 'Custom', 4412 'type': 'Custom',
4413 'impl_func': True, 4413 'impl_func': True,
4414 'unit_test': False, 4414 'unit_test': False,
4415 'client_test': False, 4415 'client_test': False,
4416 'extension': 'CHROMIUM_schedule_overlay_plane', 4416 'extension': 'CHROMIUM_schedule_overlay_plane',
4417 'chromium': True, 4417 'chromium': True,
4418 }, 4418 },
4419 'ScheduleCALayerSharedStateCHROMIUM': {
4420 'type': 'Custom',
4421 'impl_func': False,
4422 'client_test': False,
4423 'cmd_args': 'GLfloat opacity, GLboolean is_clipped, '
4424 'GLint sorting_context_id, GLuint shm_id, GLuint shm_offset',
4425 'extension': 'CHROMIUM_schedule_ca_layer',
4426 'chromium': True,
4427 },
4419 'ScheduleCALayerCHROMIUM': { 4428 'ScheduleCALayerCHROMIUM': {
4420 'type': 'Custom', 4429 'type': 'Custom',
4421 'impl_func': False, 4430 'impl_func': False,
4422 'client_test': False, 4431 'client_test': False,
4423 'cmd_args': 'GLuint contents_texture_id, GLfloat opacity, ' 4432 'cmd_args': 'GLuint contents_texture_id, GLuint background_color, '
4424 'GLuint background_color, GLuint edge_aa_mask, ' 4433 'GLuint edge_aa_mask, GLuint filter, GLuint shm_id, '
4425 'GLboolean is_clipped, GLint sorting_context_id, ' 4434 'GLuint shm_offset',
4426 'GLuint filter, GLuint shm_id, GLuint shm_offset',
4427 'extension': 'CHROMIUM_schedule_ca_layer', 4435 'extension': 'CHROMIUM_schedule_ca_layer',
4428 'chromium': True, 4436 'chromium': True,
4429 }, 4437 },
4430 'ScheduleCALayerInUseQueryCHROMIUM': { 4438 'ScheduleCALayerInUseQueryCHROMIUM': {
4431 'type': 'PUTn', 4439 'type': 'PUTn',
4432 'count': 1, 4440 'count': 1,
4433 'decoder_func': 'DoScheduleCALayerInUseQueryCHROMIUM', 4441 'decoder_func': 'DoScheduleCALayerInUseQueryCHROMIUM',
4434 'cmd_args': 'GLsizei count, const GLuint* textures', 4442 'cmd_args': 'GLsizei count, const GLuint* textures',
4435 'extension': 'CHROMIUM_schedule_ca_layer', 4443 'extension': 'CHROMIUM_schedule_ca_layer',
4436 'chromium': True, 4444 'chromium': True,
(...skipping 7088 matching lines...) Expand 10 before | Expand all | Expand 10 after
11525 Format(gen.generated_cpp_filenames) 11533 Format(gen.generated_cpp_filenames)
11526 11534
11527 if gen.errors > 0: 11535 if gen.errors > 0:
11528 print "%d errors" % gen.errors 11536 print "%d errors" % gen.errors
11529 return 1 11537 return 1
11530 return 0 11538 return 0
11531 11539
11532 11540
11533 if __name__ == '__main__': 11541 if __name__ == '__main__':
11534 sys.exit(main(sys.argv[1:])) 11542 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.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