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

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

Issue 10827310: Fix a misuse of framebuffer target in GLHelper (2) (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Fixes, part 2 Created 8 years, 4 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
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('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 os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 'invalid': [ 69 'invalid': [
70 'GL_LINEAR_MIPMAP_LINEAR', 70 'GL_LINEAR_MIPMAP_LINEAR',
71 ], 71 ],
72 }, 72 },
73 'FrameBufferTarget': { 73 'FrameBufferTarget': {
74 'type': 'GLenum', 74 'type': 'GLenum',
75 'valid': [ 75 'valid': [
76 'GL_FRAMEBUFFER', 76 'GL_FRAMEBUFFER',
77 ], 77 ],
78 'invalid': [ 78 'invalid': [
79 'GL_DRAW_FRAMEBUFFER' ,
79 'GL_READ_FRAMEBUFFER' , 80 'GL_READ_FRAMEBUFFER' ,
80 ], 81 ],
81 }, 82 },
82 'RenderBufferTarget': { 83 'RenderBufferTarget': {
83 'type': 'GLenum', 84 'type': 'GLenum',
84 'valid': [ 85 'valid': [
85 'GL_RENDERBUFFER', 86 'GL_RENDERBUFFER',
86 ], 87 ],
87 'invalid': [ 88 'invalid': [
88 'GL_FRAMEBUFFER', 89 'GL_FRAMEBUFFER',
(...skipping 6248 matching lines...) Expand 10 before | Expand all | Expand 10 after
6337 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 6338 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
6338 6339
6339 if gen.errors > 0: 6340 if gen.errors > 0:
6340 print "%d errors" % gen.errors 6341 print "%d errors" % gen.errors
6341 return 1 6342 return 1
6342 return 0 6343 return 0
6343 6344
6344 6345
6345 if __name__ == '__main__': 6346 if __name__ == '__main__':
6346 sys.exit(main(sys.argv[1:])) 6347 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698