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

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

Issue 189133004: WebGL TexParameterf and GetTexParameterf needs to handle float param correctly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 'extension': True, 2023 'extension': True,
2024 'trace_level': 1, 2024 'trace_level': 1,
2025 }, 2025 },
2026 'TexImage2D': { 2026 'TexImage2D': {
2027 'type': 'Manual', 2027 'type': 'Manual',
2028 'immediate': False, 2028 'immediate': False,
2029 'client_test': False, 2029 'client_test': False,
2030 }, 2030 },
2031 'TexParameterf': { 2031 'TexParameterf': {
2032 'decoder_func': 'DoTexParameterf', 2032 'decoder_func': 'DoTexParameterf',
2033 'gl_test_func': 'glTexParameteri',
2034 'valid_args': { 2033 'valid_args': {
2035 '2': 'GL_NEAREST' 2034 '2': 'GL_NEAREST'
2036 }, 2035 },
2037 }, 2036 },
2038 'TexParameteri': { 2037 'TexParameteri': {
2039 'decoder_func': 'DoTexParameteri', 2038 'decoder_func': 'DoTexParameteri',
2040 'valid_args': { 2039 'valid_args': {
2041 '2': 'GL_NEAREST' 2040 '2': 'GL_NEAREST'
2042 }, 2041 },
2043 }, 2042 },
2044 'TexParameterfv': { 2043 'TexParameterfv': {
2045 'type': 'PUT', 2044 'type': 'PUT',
2046 'data_type': 'GLfloat', 2045 'data_type': 'GLfloat',
2047 'data_value': 'GL_NEAREST', 2046 'data_value': 'GL_NEAREST',
2048 'count': 1, 2047 'count': 1,
2049 'decoder_func': 'DoTexParameterfv', 2048 'decoder_func': 'DoTexParameterfv',
2050 'gl_test_func': 'glTexParameteri', 2049 'gl_test_func': 'glTexParameterf',
2051 'first_element_only': True, 2050 'first_element_only': True,
2052 }, 2051 },
2053 'TexParameteriv': { 2052 'TexParameteriv': {
2054 'type': 'PUT', 2053 'type': 'PUT',
2055 'data_type': 'GLint', 2054 'data_type': 'GLint',
2056 'data_value': 'GL_NEAREST', 2055 'data_value': 'GL_NEAREST',
2057 'count': 1, 2056 'count': 1,
2058 'decoder_func': 'DoTexParameteriv', 2057 'decoder_func': 'DoTexParameteriv',
2059 'gl_test_func': 'glTexParameteri', 2058 'gl_test_func': 'glTexParameteri',
2060 'first_element_only': True, 2059 'first_element_only': True,
(...skipping 5827 matching lines...) Expand 10 before | Expand all | Expand 10 after
7888 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) 7887 "ppapi/shared_impl/ppb_opengles2_shared.cc"])
7889 7888
7890 if gen.errors > 0: 7889 if gen.errors > 0:
7891 print "%d errors" % gen.errors 7890 print "%d errors" % gen.errors
7892 return 1 7891 return 1
7893 return 0 7892 return 0
7894 7893
7895 7894
7896 if __name__ == '__main__': 7895 if __name__ == '__main__':
7897 sys.exit(main(sys.argv[1:])) 7896 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.cc ('k') | gpu/command_buffer/service/error_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698