diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 06:47:09 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 06:47:09 +0000 |
commit | 88cc7818c81afdcb418f8fd0486b2c8f57457525 (patch) | |
tree | e31e7bc875da0d45ecdf8db3bb703f80a354d861 /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | 62df0a016209f927a61b76cf85f98c68aeea141f (diff) | |
download | chromium_src-88cc7818c81afdcb418f8fd0486b2c8f57457525.zip chromium_src-88cc7818c81afdcb418f8fd0486b2c8f57457525.tar.gz chromium_src-88cc7818c81afdcb418f8fd0486b2c8f57457525.tar.bz2 |
Remove Context3D/Surface3D
Graphics3D is the new black.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8676042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 11e3baa..16fc4d2 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -1435,6 +1435,7 @@ _FUNCTION_INFO = { 'get_len_func': 'DoGetShaderiv', 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', 'unit_test': False, + 'extension': True, }, 'GetUniformfv': { 'type': 'Custom', @@ -5689,7 +5690,8 @@ class GLGenerator(object): """Writes the gles2 common utility header.""" enum_re = re.compile(r'\#define\s+(GL_[a-zA-Z0-9_]+)\s+([0-9A-Fa-fx]+)') dict = {} - for fname in ['../GLES2/gl2.h', '../GLES2/gl2ext.h']: + for fname in ['../../third_party/khronos/GLES2/gl2.h', + '../../third_party/khronos/GLES2/gl2ext.h']: lines = open(fname).readlines() for line in lines: m = enum_re.match(line) @@ -5779,21 +5781,18 @@ const size_t GLES2Util::enum_to_string_table_len_ = file.Write("#include \"base/logging.h\"\n") file.Write("#include \"gpu/command_buffer/client/gles2_implementation.h\"\n") file.Write("#include \"ppapi/shared_impl/graphics_3d_impl.h\"\n") - file.Write("#include \"ppapi/thunk/enter.h\"\n") - file.Write("#include \"ppapi/thunk/ppb_context_3d_api.h\"\n\n") + file.Write("#include \"ppapi/thunk/enter.h\"\n\n") file.Write("namespace ppapi {\n\n") file.Write("namespace {\n\n") - file.Write("gpu::gles2::GLES2Implementation* GetGLES(PP_Resource context) {\n") - file.Write(" thunk::EnterResource<thunk::PPB_Graphics3D_API> enter_g3d(context, false);\n") - file.Write(" if (enter_g3d.succeeded()) {\n") - file.Write(" return static_cast<Graphics3DImpl*>(enter_g3d.object())->gles2_impl();\n") - file.Write(" } else {\n") - file.Write(" thunk::EnterResource<thunk::PPB_Context3D_API> enter_c3d(context, true);\n") - file.Write(" DCHECK(enter_c3d.succeeded());\n") - file.Write(" return enter_c3d.object()->GetGLES2Impl();\n") - file.Write(" }\n") + file.Write("gpu::gles2::GLES2Implementation*" + " GetGLES(PP_Resource context) {\n") + file.Write(" thunk::EnterResource<thunk::PPB_Graphics3D_API>" + " enter_g3d(context, false);\n") + file.Write(" DCHECK(enter_g3d.succeeded());\n") + file.Write(" return static_cast<Graphics3DImpl*>" + "(enter_g3d.object())->gles2_impl();\n") file.Write("}\n\n") for func in self.original_functions: |