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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1310003004: Convert surfaces/service and dependents to MGL (Closed) Base URL: git@github.com:domokit/mojo.git@mgl_signal_sync_point
Patch Set: Created 5 years, 4 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/gl_context.h » ('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 512891ec035979e7079045c5717719d7e997dc30..267c65810dd7e51ea32466cebb23ca83c291ee50 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -4371,7 +4371,7 @@ TEST_P(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
is_mojo_extension = func.GetInfo("extension") in _MOJO_EXPOSED_EXTENSIONS
if func.IsCoreGLFunction() or is_mojo_extension:
- file.Write("MojoGLES2MakeCurrent(context_);");
+ file.Write("MGLMakeCurrent(context_);");
func_return = "gl" + func.original_name + "(" + \
func.MakeOriginalArgString("") + ");"
if func.original_name == "ResizeCHROMIUM":
@@ -10159,13 +10159,13 @@ extern const NameToFunc g_gles2_function_table[] = {
code = """
#include "gpu/command_buffer/client/gles2_interface.h"
-#include "mojo/public/c/gles2/gles2.h"
+#include "mojo/public/c/gpu/MGL/mgl.h"
namespace mojo {
class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
public:
- explicit MojoGLES2Impl(MojoGLES2Context context) {
+ explicit MojoGLES2Impl(MGLContext context) {
context_ = context;
}
~MojoGLES2Impl() override {}
@@ -10175,7 +10175,7 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
func.WriteMojoGLES2ImplHeader(file)
code = """
private:
- MojoGLES2Context context_;
+ MGLContext context_;
};
} // namespace mojo
@@ -10194,7 +10194,7 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
#include "mojo/gpu/mojo_gles2_impl_autogen.h"
#include "base/logging.h"
-#include "mojo/public/c/gles2/gles2.h"
+#include "mojo/public/c/gpu/MGL/mgl.h"
#include "mojo/public/c/gpu/MGL/mgl_onscreen.h"
#define GL_GLEXT_PROTOTYPES
« no previous file with comments | « no previous file | mojo/gpu/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698