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

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

Issue 2456213002: WebVR: implement SetSurfaceHandleCHROMIUM extension for gvr_device.
Patch Set: Created 4 years, 1 month 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 2363 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 # extension_flag: Function is an extension and should be enabled only when 2374 # extension_flag: Function is an extension and should be enabled only when
2375 # the corresponding feature info flag is enabled. Implies 2375 # the corresponding feature info flag is enabled. Implies
2376 # 'extension': True. 2376 # 'extension': True.
2377 # not_shared: For GENn types, True if objects can't be shared between contexts 2377 # not_shared: For GENn types, True if objects can't be shared between contexts
2378 # unsafe: True = no validation is implemented on the service side and the 2378 # unsafe: True = no validation is implemented on the service side and the
2379 # command is only available with --enable-unsafe-es3-apis. 2379 # command is only available with --enable-unsafe-es3-apis.
2380 # id_mapping: A list of resource type names whose client side IDs need to be 2380 # id_mapping: A list of resource type names whose client side IDs need to be
2381 # mapped to service side IDs. This is only used for unsafe APIs. 2381 # mapped to service side IDs. This is only used for unsafe APIs.
2382 2382
2383 _FUNCTION_INFO = { 2383 _FUNCTION_INFO = {
2384 'SetSurfaceHandleCHROMIUM': {
2385 'decoder_func': 'DoSetSurfaceHandleCHROMIUM',
2386 'unit_test': False,
2387 'client_test': False,
2388 'chromium': True,
2389 'extension': True,
2390 },
bajones 2016/10/28 00:41:21 This is totally my fault, and it's a nit, but this
klausw 2016/11/08 02:18:30 I've put it i a mostly-alphabetical section, the o
2391
2384 'ActiveTexture': { 2392 'ActiveTexture': {
2385 'decoder_func': 'DoActiveTexture', 2393 'decoder_func': 'DoActiveTexture',
2386 'unit_test': False, 2394 'unit_test': False,
2387 'impl_func': False, 2395 'impl_func': False,
2388 'client_test': False, 2396 'client_test': False,
2389 }, 2397 },
2390 'ApplyScreenSpaceAntialiasingCHROMIUM': { 2398 'ApplyScreenSpaceAntialiasingCHROMIUM': {
2391 'decoder_func': 'DoApplyScreenSpaceAntialiasingCHROMIUM', 2399 'decoder_func': 'DoApplyScreenSpaceAntialiasingCHROMIUM',
2392 'extension': 'CHROMIUM_screen_space_antialiasing', 2400 'extension': 'CHROMIUM_screen_space_antialiasing',
2393 'extension_flag': 'chromium_screen_space_antialiasing', 2401 'extension_flag': 'chromium_screen_space_antialiasing',
(...skipping 8952 matching lines...) Expand 10 before | Expand all | Expand 10 after
11346 Format(gen.generated_cpp_filenames) 11354 Format(gen.generated_cpp_filenames)
11347 11355
11348 if gen.errors > 0: 11356 if gen.errors > 0:
11349 print "%d errors" % gen.errors 11357 print "%d errors" % gen.errors
11350 return 1 11358 return 1
11351 return 0 11359 return 0
11352 11360
11353 11361
11354 if __name__ == '__main__': 11362 if __name__ == '__main__':
11355 sys.exit(main(sys.argv[1:])) 11363 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698