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

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

Issue 2627323007: Migrate WebGL contexts on backgrounded tabs to the integrated GPU.
Patch Set: Created 3 years, 11 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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 'PathFragmentInputGenMode': { 1785 'PathFragmentInputGenMode': {
1786 'type': 'GLenum', 1786 'type': 'GLenum',
1787 'is_complete': True, 1787 'is_complete': True,
1788 'valid': [ 1788 'valid': [
1789 'GL_NONE', 1789 'GL_NONE',
1790 'GL_EYE_LINEAR_CHROMIUM', 1790 'GL_EYE_LINEAR_CHROMIUM',
1791 'GL_OBJECT_LINEAR_CHROMIUM', 1791 'GL_OBJECT_LINEAR_CHROMIUM',
1792 'GL_CONSTANT_CHROMIUM', 1792 'GL_CONSTANT_CHROMIUM',
1793 ], 1793 ],
1794 }, 1794 },
1795 'PerformanceHintMode': {
1796 'type': 'GLenum',
1797 'is_complete': True,
1798 'valid': [
1799 'GL_DEFAULT_POWER_CHROMIUM',
1800 'GL_LOW_POWER_CHROMIUM',
1801 'GL_HIGH_PERFORMANCE_CHROMIUM',
1802 ],
1803 },
1795 'ReadPixelType': { 1804 'ReadPixelType': {
1796 'type': 'GLenum', 1805 'type': 'GLenum',
1797 'valid': [ 1806 'valid': [
1798 'GL_UNSIGNED_BYTE', 1807 'GL_UNSIGNED_BYTE',
1799 'GL_UNSIGNED_SHORT_5_6_5', 1808 'GL_UNSIGNED_SHORT_5_6_5',
1800 'GL_UNSIGNED_SHORT_4_4_4_4', 1809 'GL_UNSIGNED_SHORT_4_4_4_4',
1801 'GL_UNSIGNED_SHORT_5_5_5_1', 1810 'GL_UNSIGNED_SHORT_5_5_5_1',
1802 ], 1811 ],
1803 'valid_es3': [ 1812 'valid_es3': [
1804 'GL_BYTE', 1813 'GL_BYTE',
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
3484 'decoder_func': 'DoOverlayPromotionHintCHROMIUM', 3493 'decoder_func': 'DoOverlayPromotionHintCHROMIUM',
3485 'extension': "CHROMIUM_uniform_stream_texture_matrix", 3494 'extension': "CHROMIUM_uniform_stream_texture_matrix",
3486 'unit_test': False, 3495 'unit_test': False,
3487 'client_test': False, 3496 'client_test': False,
3488 }, 3497 },
3489 'PauseTransformFeedback': { 3498 'PauseTransformFeedback': {
3490 'decoder_func': 'DoPauseTransformFeedback', 3499 'decoder_func': 'DoPauseTransformFeedback',
3491 'unit_test': False, 3500 'unit_test': False,
3492 'es3': True, 3501 'es3': True,
3493 }, 3502 },
3503 'PerformanceHintCHROMIUM': {
3504 'decoder_func': 'DoPerformanceHintCHROMIUM',
3505 'extension': "CHROMIUM_performance_hint",
3506 'unit_test': False,
3507 'client_test': False,
3508 },
3494 'PixelStorei': { 3509 'PixelStorei': {
3495 'type': 'Custom', 3510 'type': 'Custom',
3496 'impl_func': False, 3511 'impl_func': False,
3497 }, 3512 },
3498 'PostSubBufferCHROMIUM': { 3513 'PostSubBufferCHROMIUM': {
3499 'type': 'Custom', 3514 'type': 'Custom',
3500 'impl_func': False, 3515 'impl_func': False,
3501 'client_test': False, 3516 'client_test': False,
3502 'extension': True, 3517 'extension': True,
3503 }, 3518 },
(...skipping 7707 matching lines...) Expand 10 before | Expand all | Expand 10 after
11211 Format(gen.generated_cpp_filenames) 11226 Format(gen.generated_cpp_filenames)
11212 11227
11213 if gen.errors > 0: 11228 if gen.errors > 0:
11214 print "%d errors" % gen.errors 11229 print "%d errors" % gen.errors
11215 return 1 11230 return 1
11216 return 0 11231 return 0
11217 11232
11218 11233
11219 if __name__ == '__main__': 11234 if __name__ == '__main__':
11220 sys.exit(main(sys.argv[1:])) 11235 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698