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

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

Issue 2735853002: Offset scissor and viewport when using SetDrawRectangle on surface. (Closed)
Patch Set: remove flag Created 3 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
« no previous file with comments | « no previous file | 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 itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 3987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 'cmd_args': 'GLuint sync, GLbitfieldSyncFlushFlags flags, ' 3998 'cmd_args': 'GLuint sync, GLbitfieldSyncFlushFlags flags, '
3999 'GLuint64 timeout', 3999 'GLuint64 timeout',
4000 'impl_func': False, 4000 'impl_func': False,
4001 'client_test': False, 4001 'client_test': False,
4002 'es3': True, 4002 'es3': True,
4003 'trace_level': 1, 4003 'trace_level': 1,
4004 }, 4004 },
4005 'Scissor': { 4005 'Scissor': {
4006 'type': 'StateSet', 4006 'type': 'StateSet',
4007 'state': 'Scissor', 4007 'state': 'Scissor',
4008 'decoder_func': 'DoScissor',
4008 }, 4009 },
4009 'Viewport': { 4010 'Viewport': {
4010 'impl_func': False, 4011 'impl_func': False,
4011 'decoder_func': 'DoViewport', 4012 'decoder_func': 'DoViewport',
4012 }, 4013 },
4013 'ResizeCHROMIUM': { 4014 'ResizeCHROMIUM': {
4014 'type': 'Custom', 4015 'type': 'Custom',
4015 'impl_func': False, 4016 'impl_func': False,
4016 'extension': True, 4017 'extension': True,
4017 'trace_level': 1, 4018 'trace_level': 1,
(...skipping 7209 matching lines...) Expand 10 before | Expand all | Expand 10 after
11227 Format(gen.generated_cpp_filenames) 11228 Format(gen.generated_cpp_filenames)
11228 11229
11229 if gen.errors > 0: 11230 if gen.errors > 0:
11230 print "%d errors" % gen.errors 11231 print "%d errors" % gen.errors
11231 return 1 11232 return 1
11232 return 0 11233 return 0
11233 11234
11234 11235
11235 if __name__ == '__main__': 11236 if __name__ == '__main__':
11236 sys.exit(main(sys.argv[1:])) 11237 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698