Index: gpu/command_buffer/build_gles2_cmd_buffer.py |
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py |
index af2381319b7cd6ca097c5f23da9f706bb562cd8a..aa7be79cbca34041a21142e4494e1a84a0dc15ac 100755 |
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py |
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py |
@@ -4220,20 +4220,9 @@ TEST_P(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) { |
file.Write("%s MojoGLES2Impl::%s(%s) {\n" % |
(func.return_type, func.original_name, |
func.MakeTypedOriginalArgString(""))) |
- # TODO(alhaad): Add Mojo C thunk for each of the following methods and |
- # remove this. |
- func_list = ["GenQueriesEXT", "BeginQueryEXT", "MapTexSubImage2DCHROMIUM", |
- "UnmapTexSubImage2DCHROMIUM", "DeleteQueriesEXT", |
- "EndQueryEXT", "GetQueryObjectuivEXT", "ShallowFlushCHROMIUM"] |
- if func.original_name in func_list: |
- file.Write("return static_cast<gpu::gles2::GLES2Interface*>" |
- "(MojoGLES2GetGLES2Interface(context_))->" + |
- func.original_name + "(" + func.MakeOriginalArgString("") + |
- ");") |
- file.Write("}") |
- return |
- |
- extensions = ["CHROMIUM_sync_point", "CHROMIUM_texture_mailbox"] |
+ extensions = ["CHROMIUM_sync_point", "CHROMIUM_texture_mailbox", |
+ "CHROMIUM_sub_image", "CHROMIUM_miscellaneous", |
+ "occlusion_query_EXT"] |
if func.IsCoreGLFunction() or func.GetInfo("extension") in extensions: |
file.Write("MojoGLES2MakeCurrent(context_);"); |
func_return = "gl" + func.original_name + "(" + \ |
@@ -10055,9 +10044,12 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface { |
#include "mojo/gpu/mojo_gles2_impl_autogen.h" |
#include "base/logging.h" |
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" |
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" |
+#include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" |
namespace mojo { |