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

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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests Created 7 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 | Annotate | Revision Log
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_cmd_helper_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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 ], 819 ],
820 }, 820 },
821 'QueryTarget': { 821 'QueryTarget': {
822 'type': 'GLenum', 822 'type': 'GLenum',
823 'valid': [ 823 'valid': [
824 'GL_ANY_SAMPLES_PASSED_EXT', 824 'GL_ANY_SAMPLES_PASSED_EXT',
825 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', 825 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT',
826 'GL_COMMANDS_ISSUED_CHROMIUM', 826 'GL_COMMANDS_ISSUED_CHROMIUM',
827 'GL_LATENCY_QUERY_CHROMIUM', 827 'GL_LATENCY_QUERY_CHROMIUM',
828 'GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM', 828 'GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM',
829 'GL_ASYNC_READ_PIXELS_COMPLETED_CHROMIUM',
829 ], 830 ],
830 }, 831 },
831 'RenderBufferParameter': { 832 'RenderBufferParameter': {
832 'type': 'GLenum', 833 'type': 'GLenum',
833 'valid': [ 834 'valid': [
834 'GL_RENDERBUFFER_RED_SIZE', 835 'GL_RENDERBUFFER_RED_SIZE',
835 'GL_RENDERBUFFER_GREEN_SIZE', 836 'GL_RENDERBUFFER_GREEN_SIZE',
836 'GL_RENDERBUFFER_BLUE_SIZE', 837 'GL_RENDERBUFFER_BLUE_SIZE',
837 'GL_RENDERBUFFER_ALPHA_SIZE', 838 'GL_RENDERBUFFER_ALPHA_SIZE',
838 'GL_RENDERBUFFER_DEPTH_SIZE', 839 'GL_RENDERBUFFER_DEPTH_SIZE',
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 '// it is easier to specify the result going to some specific place\n' 1895 '// it is easier to specify the result going to some specific place\n'
1895 '// that exactly fits the rectangle of pixels.\n', 1896 '// that exactly fits the rectangle of pixels.\n',
1896 'type': 'Custom', 1897 'type': 'Custom',
1897 'immediate': False, 1898 'immediate': False,
1898 'impl_func': False, 1899 'impl_func': False,
1899 'client_test': False, 1900 'client_test': False,
1900 'cmd_args': 1901 'cmd_args':
1901 'GLint x, GLint y, GLsizei width, GLsizei height, ' 1902 'GLint x, GLint y, GLsizei width, GLsizei height, '
1902 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' 1903 'GLenumReadPixelFormat format, GLenumReadPixelType type, '
1903 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' 1904 'uint32 pixels_shm_id, uint32 pixels_shm_offset, '
1904 'uint32 result_shm_id, uint32 result_shm_offset', 1905 'uint32 result_shm_id, uint32 result_shm_offset, '
1906 'GLboolean async',
1905 'result': ['uint32'], 1907 'result': ['uint32'],
1906 'defer_reads': True, 1908 'defer_reads': True,
1907 }, 1909 },
1908 'RegisterSharedIdsCHROMIUM': { 1910 'RegisterSharedIdsCHROMIUM': {
1909 'type': 'Custom', 1911 'type': 'Custom',
1910 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', 1912 'decoder_func': 'DoRegisterSharedIdsCHROMIUM',
1911 'impl_func': False, 1913 'impl_func': False,
1912 'expectation': False, 1914 'expectation': False,
1913 'immediate': False, 1915 'immediate': False,
1914 'extension': True, 1916 'extension': True,
(...skipping 5876 matching lines...) Expand 10 before | Expand all | Expand 10 after
7791 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") 7793 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h")
7792 7794
7793 if gen.errors > 0: 7795 if gen.errors > 0:
7794 print "%d errors" % gen.errors 7796 print "%d errors" % gen.errors
7795 return 1 7797 return 1
7796 return 0 7798 return 0
7797 7799
7798 7800
7799 if __name__ == '__main__': 7801 if __name__ == '__main__':
7800 sys.exit(main(sys.argv[1:])) 7802 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_cmd_helper_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698