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

Unified Diff: webrtc/sdk/android/src/jni/pc/mediasource_jni.cc

Issue 2998403002: Android: Update convenience macro defining JNI-accessible methods (Closed)
Patch Set: Created 3 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 | « webrtc/sdk/android/src/jni/pc/logging_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/mediastream_jni.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/pc/mediasource_jni.cc
diff --git a/webrtc/sdk/android/src/jni/pc/mediasource_jni.cc b/webrtc/sdk/android/src/jni/pc/mediasource_jni.cc
index 1fc46b3c2fc2678acf8aa7cf8c16236fc005f877..6e3150d3fbeb7939337aa7700a76c071393ba918 100644
--- a/webrtc/sdk/android/src/jni/pc/mediasource_jni.cc
+++ b/webrtc/sdk/android/src/jni/pc/mediasource_jni.cc
@@ -13,11 +13,15 @@
namespace webrtc_jni {
-JOW(void, MediaSource_free)(JNIEnv*, jclass, jlong j_p) {
+JNI_FUNCTION_DECLARATION(void, MediaSource_free, JNIEnv*, jclass, jlong j_p) {
reinterpret_cast<rtc::RefCountInterface*>(j_p)->Release();
}
-JOW(jobject, MediaSource_nativeState)(JNIEnv* jni, jclass, jlong j_p) {
+JNI_FUNCTION_DECLARATION(jobject,
+ MediaSource_nativeState,
+ JNIEnv* jni,
+ jclass,
+ jlong j_p) {
rtc::scoped_refptr<webrtc::MediaSourceInterface> p(
reinterpret_cast<webrtc::MediaSourceInterface*>(j_p));
return JavaEnumFromIndexAndClassName(jni, "MediaSource$State", p->state());
« no previous file with comments | « webrtc/sdk/android/src/jni/pc/logging_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/mediastream_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698