-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JNI Example] Call native in Java (#4657)
This PR serves as an example of how we should migrate Java native API to Chromium JNI standard. Local test: Simply ensure the native API is invoked. haozheng@haozheng:~/chromium/src$ adb logcat | grep JNI 01-08 14:56:20.158 13226 13226 I starboard: [dev.cobalt.coat/13226:0108/225620.158117(UTC):INFO:starboard_bridge.cc(93)] JNI: StartNativeStarboard: 0xec140a60 Explanation: Replace Java_dev_cobalt_coat_StarboardBridge_startNativeStarboard(JniEnvExt* env) with JNI_StarboardBridge_StartNativeStarboard(JNIEnv* env). Move implementation over to starboard_bridge.cc because we should only include the _jni header from a single .cc file as the header defines functions, to avoid duplicate symbols issue. b/372559388
- Loading branch information
1 parent
c99e348
commit 632168a
Showing
3 changed files
with
58 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters