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

Unified Diff: mojo/shell/runner/host/native_application_support.cc

Issue 1738663002: Hook embedded shell up to MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « mojo/shell/runner/host/linux_sandbox.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/host/native_application_support.cc
diff --git a/mojo/shell/runner/host/native_application_support.cc b/mojo/shell/runner/host/native_application_support.cc
index 97288fa1e6ecc92d0ecb4d5b7bce276222f6d37e..b965144349f6a591bbe4bf846e5a19030520f28b 100644
--- a/mojo/shell/runner/host/native_application_support.cc
+++ b/mojo/shell/runner/host/native_application_support.cc
@@ -11,10 +11,13 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "mojo/platform_handle/platform_handle_private_thunks.h"
+#include "mojo/public/platform/native/system_thunks.h"
+
+#if defined(NATIVE_APPLICATION_USE_GLES2_IMPL)
#include "mojo/public/platform/native/gles2_impl_chromium_extension_thunks.h"
#include "mojo/public/platform/native/gles2_impl_thunks.h"
#include "mojo/public/platform/native/gles2_thunks.h"
-#include "mojo/public/platform/native/system_thunks.h"
+#endif
namespace mojo {
namespace shell {
@@ -67,6 +70,7 @@ bool RunNativeApplication(
return false;
}
+#if defined(NATIVE_APPLICATION_USE_GLES2_IMPL)
if (SetThunks(&MojoMakeGLES2ControlThunks, "MojoSetGLES2ControlThunks",
app_library)) {
// If we have the control thunks, we should also have the GLES2
@@ -84,6 +88,8 @@ bool RunNativeApplication(
SetThunks(MojoMakeGLES2ImplChromiumExtensionThunks,
"MojoSetGLES2ImplChromiumExtensionThunks", app_library);
}
+#endif
+
// Unlike system thunks, we don't warn on a lack of GLES2 thunks because
// not everything is a visual app.
« no previous file with comments | « mojo/shell/runner/host/linux_sandbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698