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 2163493002: Break glScheduleCALayerCHROMIUM into smaller functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_cleanup_calayeroverlay
Patch Set: Rebase. 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
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 },
4428 'UnscheduleCALayerSharedStateCHROMIUM': {
4429 'type': 'Custom',
4430 'decoder_func': 'DoUnscheduleCALayerSharedStateCHROMIUM',
4431 'extension': 'CHROMIUM_schedule_ca_layer',
4432 'chromium': True,
4433 'unit_test': False,
4434 },
4419 'ScheduleCALayerCHROMIUM': { 4435 'ScheduleCALayerCHROMIUM': {
4420 'type': 'Custom', 4436 'type': 'Custom',
4421 'impl_func': False, 4437 'impl_func': False,
4422 'client_test': False, 4438 'client_test': False,
4423 'cmd_args': 'GLuint contents_texture_id, GLfloat opacity, ' 4439 'cmd_args': 'GLuint contents_texture_id, GLuint background_color, '
4424 'GLuint background_color, GLuint edge_aa_mask, ' 4440 'GLuint edge_aa_mask, GLuint filter, GLuint shm_id, '
4425 'GLboolean is_clipped, GLint sorting_context_id, ' 4441 'GLuint shm_offset',
4426 'GLuint filter, GLuint shm_id, GLuint shm_offset',
4427 'extension': 'CHROMIUM_schedule_ca_layer', 4442 'extension': 'CHROMIUM_schedule_ca_layer',
4428 'chromium': True, 4443 'chromium': True,
4429 }, 4444 },
4430 'ScheduleCALayerInUseQueryCHROMIUM': { 4445 'ScheduleCALayerInUseQueryCHROMIUM': {
4431 'type': 'PUTn', 4446 'type': 'PUTn',
4432 'count': 1, 4447 'count': 1,
4433 'decoder_func': 'DoScheduleCALayerInUseQueryCHROMIUM', 4448 'decoder_func': 'DoScheduleCALayerInUseQueryCHROMIUM',
4434 'cmd_args': 'GLsizei count, const GLuint* textures', 4449 'cmd_args': 'GLsizei count, const GLuint* textures',
4435 'extension': 'CHROMIUM_schedule_ca_layer', 4450 'extension': 'CHROMIUM_schedule_ca_layer',
4436 'chromium': True, 4451 'chromium': True,
(...skipping 7088 matching lines...) Expand 10 before | Expand all | Expand 10 after
11525 Format(gen.generated_cpp_filenames) 11540 Format(gen.generated_cpp_filenames)
11526 11541
11527 if gen.errors > 0: 11542 if gen.errors > 0:
11528 print "%d errors" % gen.errors 11543 print "%d errors" % gen.errors
11529 return 1 11544 return 1
11530 return 0 11545 return 0
11531 11546
11532 11547
11533 if __name__ == '__main__': 11548 if __name__ == '__main__':
11534 sys.exit(main(sys.argv[1:])) 11549 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698