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

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

Issue 238933003: Re-land: gpu: Add CHROMIUM_sync_query extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 6 years, 8 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
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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 }, 834 },
835 'QueryTarget': { 835 'QueryTarget': {
836 'type': 'GLenum', 836 'type': 'GLenum',
837 'valid': [ 837 'valid': [
838 'GL_ANY_SAMPLES_PASSED_EXT', 838 'GL_ANY_SAMPLES_PASSED_EXT',
839 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', 839 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT',
840 'GL_COMMANDS_ISSUED_CHROMIUM', 840 'GL_COMMANDS_ISSUED_CHROMIUM',
841 'GL_LATENCY_QUERY_CHROMIUM', 841 'GL_LATENCY_QUERY_CHROMIUM',
842 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', 842 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM',
843 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', 843 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM',
844 'GL_COMMANDS_COMPLETED_CHROMIUM',
piman 2014/04/16 00:32:03 We should only add this to the set of valid enums
reveman 2014/04/16 01:28:47 I'm assuming it's OK to handle this in HandleBegin
844 ], 845 ],
845 }, 846 },
846 'RenderBufferParameter': { 847 'RenderBufferParameter': {
847 'type': 'GLenum', 848 'type': 'GLenum',
848 'valid': [ 849 'valid': [
849 'GL_RENDERBUFFER_RED_SIZE', 850 'GL_RENDERBUFFER_RED_SIZE',
850 'GL_RENDERBUFFER_GREEN_SIZE', 851 'GL_RENDERBUFFER_GREEN_SIZE',
851 'GL_RENDERBUFFER_BLUE_SIZE', 852 'GL_RENDERBUFFER_BLUE_SIZE',
852 'GL_RENDERBUFFER_ALPHA_SIZE', 853 'GL_RENDERBUFFER_ALPHA_SIZE',
853 'GL_RENDERBUFFER_DEPTH_SIZE', 854 'GL_RENDERBUFFER_DEPTH_SIZE',
(...skipping 7101 matching lines...) Expand 10 before | Expand all | Expand 10 after
7955 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) 7956 "ppapi/shared_impl/ppb_opengles2_shared.cc"])
7956 7957
7957 if gen.errors > 0: 7958 if gen.errors > 0:
7958 print "%d errors" % gen.errors 7959 print "%d errors" % gen.errors
7959 return 1 7960 return 1
7960 return 0 7961 return 0
7961 7962
7962 7963
7963 if __name__ == '__main__': 7964 if __name__ == '__main__':
7964 sys.exit(main(sys.argv[1:])) 7965 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698