Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

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

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix. Created 4 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 4405 matching lines...) Expand 10 before | Expand all | Expand 10 after
4416 'type': 'Custom', 4416 'type': 'Custom',
4417 'impl_func': False, 4417 'impl_func': False,
4418 'client_test': False, 4418 'client_test': False,
4419 'cmd_args': 'GLuint contents_texture_id, GLfloat opacity, ' 4419 'cmd_args': 'GLuint contents_texture_id, GLfloat opacity, '
4420 'GLuint background_color, GLuint edge_aa_mask, ' 4420 'GLuint background_color, GLuint edge_aa_mask, '
4421 'GLboolean is_clipped, GLint sorting_context_id, ' 4421 'GLboolean is_clipped, GLint sorting_context_id, '
4422 'GLuint filter, GLuint shm_id, GLuint shm_offset', 4422 'GLuint filter, GLuint shm_id, GLuint shm_offset',
4423 'extension': 'CHROMIUM_schedule_ca_layer', 4423 'extension': 'CHROMIUM_schedule_ca_layer',
4424 'chromium': True, 4424 'chromium': True,
4425 }, 4425 },
4426 'ScheduleCALayerInUseQueryCHROMIUM': {
4427 'type': 'Custom',
piman 2016/06/14 00:58:55 You should be able to use the PUTn type, like e.g.
erikchen 2016/06/14 01:47:51 Awesome. I'm a big fan of not writing boilerplate
4428 'impl_func': True,
4429 'cmd_args': 'GLuint n, GLuint* textures',
4430 'extension': 'CHROMIUM_schedule_ca_layer',
4431 'chromium': True,
4432 },
4426 'CommitOverlayPlanesCHROMIUM': { 4433 'CommitOverlayPlanesCHROMIUM': {
4427 'impl_func': False, 4434 'impl_func': False,
4428 'decoder_func': 'DoCommitOverlayPlanes', 4435 'decoder_func': 'DoCommitOverlayPlanes',
4429 'unit_test': False, 4436 'unit_test': False,
4430 'client_test': False, 4437 'client_test': False,
4431 'extension': 'CHROMIUM_commit_overlay_planes', 4438 'extension': 'CHROMIUM_commit_overlay_planes',
4432 'chromium': True, 4439 'chromium': True,
4433 }, 4440 },
4434 'MatrixLoadfCHROMIUM': { 4441 'MatrixLoadfCHROMIUM': {
4435 'type': 'PUT', 4442 'type': 'PUT',
(...skipping 7089 matching lines...) Expand 10 before | Expand all | Expand 10 after
11525 Format(gen.generated_cpp_filenames) 11532 Format(gen.generated_cpp_filenames)
11526 11533
11527 if gen.errors > 0: 11534 if gen.errors > 0:
11528 print "%d errors" % gen.errors 11535 print "%d errors" % gen.errors
11529 return 1 11536 return 1
11530 return 0 11537 return 0
11531 11538
11532 11539
11533 if __name__ == '__main__': 11540 if __name__ == '__main__':
11534 sys.exit(main(sys.argv[1:])) 11541 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698