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

Unified Diff: shell/native_application_support.cc

Issue 1288583002: Add MGL entry points and port spinning_cube to use them (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix android build 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
« mojo/public/platform/native/mgl_thunks.c ('K') | « shell/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/native_application_support.cc
diff --git a/shell/native_application_support.cc b/shell/native_application_support.cc
index d3887dcc50ca9bf5a4e5684d0f7489f24de0b6be..f19d3741bcb120df49d5be3e05557789f35a0416 100644
--- a/shell/native_application_support.cc
+++ b/shell/native_application_support.cc
@@ -17,6 +17,8 @@
#include "mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.h"
#include "mojo/public/platform/native/gles2_impl_thunks.h"
#include "mojo/public/platform/native/gles2_thunks.h"
+#include "mojo/public/platform/native/mgl_onscreen_thunks.h"
+#include "mojo/public/platform/native/mgl_thunks.h"
#include "mojo/public/platform/native/system_impl_private_thunks.h"
#include "mojo/public/platform/native/system_thunks.h"
@@ -105,6 +107,12 @@ bool RunNativeApplication(
SetThunks(MojoMakeGLES2ImplChromiumTextureMailboxThunks,
"MojoSetGLES2ImplChromiumTextureMailboxThunks", app_library);
}
+ SetThunks(MojoMakeMGLThunks, "MojoSetMGLThunks", app_library);
viettrungluu 2015/08/12 02:48:10 I suppose the conditional for the GLES2 control th
jamesr 2015/08/13 19:42:27 I made the MGL onscreen thunks conditional on the
+
+ // TODO(jamesr): We should only need to expose these on apps that need to draw
+ // to the screen like the system compositor.
+ SetThunks(MojoMakeMGLOnscreenThunks, "MojoSetMGLOnscreenThunks", app_library);
viettrungluu 2015/08/12 02:48:10 And presumably this would also be conditional on t
+
// Unlike system thunks, we don't warn on a lack of GLES2 thunks because
// not everything is a visual app.
« mojo/public/platform/native/mgl_thunks.c ('K') | « shell/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698