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

Unified Diff: mojo/runner/native_application_support.cc

Issue 1113393002: Adds thunks for getting platform handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback Created 5 years, 8 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
Index: mojo/runner/native_application_support.cc
diff --git a/mojo/runner/native_application_support.cc b/mojo/runner/native_application_support.cc
index c4270da27bd95f2c86d8e900a4b637be070d38e3..ce4f0b90a1549055281dc7c5cbd42638316d1305 100644
--- a/mojo/runner/native_application_support.cc
+++ b/mojo/runner/native_application_support.cc
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
+#include "mojo/platform_handle/platform_handle_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_miscellaneous_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h"
#include "mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h"
@@ -126,6 +127,10 @@ bool RunNativeApplication(base::NativeLibrary app_library,
}
#endif
+ // Apps need not include platform handle thunks.
+ SetThunks(&MojoMakePlatformHandlePrivateThunks,
+ "MojoSetPlatformHandlePrivateThunks", app_library);
+
typedef MojoResult (*MojoMainFunction)(MojoHandle);
MojoMainFunction main_function = reinterpret_cast<MojoMainFunction>(
base::GetFunctionPointerFromNativeLibrary(app_library, "MojoMain"));

Powered by Google App Engine
This is Rietveld 408576698