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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1035813002: Remove all usages of MojoGLES2GetGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/gpu/mojo_gles2_impl_autogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | mojo/gpu/mojo_gles2_impl_autogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698