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

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

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: FBOs/VAOs should not be shared between contexts Created 3 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
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 2899 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 }, 2910 },
2911 'GenMailboxCHROMIUM': { 2911 'GenMailboxCHROMIUM': {
2912 'type': 'NoCommand', 2912 'type': 'NoCommand',
2913 'extension': "CHROMIUM_texture_mailbox", 2913 'extension': "CHROMIUM_texture_mailbox",
2914 }, 2914 },
2915 'GenFramebuffers': { 2915 'GenFramebuffers': {
2916 'type': 'GENn', 2916 'type': 'GENn',
2917 'gl_test_func': 'glGenFramebuffersEXT', 2917 'gl_test_func': 'glGenFramebuffersEXT',
2918 'resource_type': 'Framebuffer', 2918 'resource_type': 'Framebuffer',
2919 'resource_types': 'Framebuffers', 2919 'resource_types': 'Framebuffers',
2920 'not_shared': 'True',
2920 }, 2921 },
2921 'GenRenderbuffers': { 2922 'GenRenderbuffers': {
2922 'type': 'GENn', 'gl_test_func': 'glGenRenderbuffersEXT', 2923 'type': 'GENn', 'gl_test_func': 'glGenRenderbuffersEXT',
2923 'resource_type': 'Renderbuffer', 2924 'resource_type': 'Renderbuffer',
2924 'resource_types': 'Renderbuffers', 2925 'resource_types': 'Renderbuffers',
2925 }, 2926 },
2926 'GenSamplers': { 2927 'GenSamplers': {
2927 'type': 'GENn', 2928 'type': 'GENn',
2928 'gl_test_func': 'glGenSamplers', 2929 'gl_test_func': 'glGenSamplers',
2929 'resource_type': 'Sampler', 2930 'resource_type': 'Sampler',
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 }, 4239 },
4239 4240
4240 'GenVertexArraysOES': { 4241 'GenVertexArraysOES': {
4241 'type': 'GENn', 4242 'type': 'GENn',
4242 'extension': 'OES_vertex_array_object', 4243 'extension': 'OES_vertex_array_object',
4243 'gl_test_func': 'glGenVertexArraysOES', 4244 'gl_test_func': 'glGenVertexArraysOES',
4244 'resource_type': 'VertexArray', 4245 'resource_type': 'VertexArray',
4245 'resource_types': 'VertexArrays', 4246 'resource_types': 'VertexArrays',
4246 'unit_test': False, 4247 'unit_test': False,
4247 'pepper_interface': 'VertexArrayObject', 4248 'pepper_interface': 'VertexArrayObject',
4249 'not_shared': 'True',
4248 }, 4250 },
4249 'BindVertexArrayOES': { 4251 'BindVertexArrayOES': {
4250 'type': 'Bind', 4252 'type': 'Bind',
4251 'extension': 'OES_vertex_array_object', 4253 'extension': 'OES_vertex_array_object',
4252 'gl_test_func': 'glBindVertexArrayOES', 4254 'gl_test_func': 'glBindVertexArrayOES',
4253 'decoder_func': 'DoBindVertexArrayOES', 4255 'decoder_func': 'DoBindVertexArrayOES',
4254 'gen_func': 'GenVertexArraysOES', 4256 'gen_func': 'GenVertexArraysOES',
4255 'unit_test': False, 4257 'unit_test': False,
4256 'client_test': False, 4258 'client_test': False,
4257 'pepper_interface': 'VertexArrayObject', 4259 'pepper_interface': 'VertexArrayObject',
(...skipping 6991 matching lines...) Expand 10 before | Expand all | Expand 10 after
11249 Format(gen.generated_cpp_filenames) 11251 Format(gen.generated_cpp_filenames)
11250 11252
11251 if gen.errors > 0: 11253 if gen.errors > 0:
11252 print "%d errors" % gen.errors 11254 print "%d errors" % gen.errors
11253 return 1 11255 return 1
11254 return 0 11256 return 0
11255 11257
11256 11258
11257 if __name__ == '__main__': 11259 if __name__ == '__main__':
11258 sys.exit(main(sys.argv[1:])) 11260 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.h » ('j') | gpu/command_buffer/client/gles2_implementation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698