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

Unified Diff: webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.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/videodecoderwrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
diff --git a/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc b/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
index c5bbe5a34f00a87dd8109fc606f9ad64e99f339a..ea83597aeae5a71b74b427b5c55c85df0f50d72f 100644
--- a/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
+++ b/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
@@ -46,13 +46,19 @@ jobject WrapI420Buffer(
return j_wrapped_native_i420_buffer;
}
-JOW(void, WrappedNativeI420Buffer_nativeAddRef)
-(JNIEnv* jni, jclass, jlong j_buffer_pointer) {
+JNI_FUNCTION_DECLARATION(void,
+ WrappedNativeI420Buffer_nativeAddRef,
+ JNIEnv* jni,
+ jclass,
+ jlong j_buffer_pointer) {
reinterpret_cast<webrtc::VideoFrameBuffer*>(j_buffer_pointer)->AddRef();
}
-JOW(void, WrappedNativeI420Buffer_nativeRelease)
-(JNIEnv* jni, jclass, jlong j_buffer_pointer) {
+JNI_FUNCTION_DECLARATION(void,
+ WrappedNativeI420Buffer_nativeRelease,
+ JNIEnv* jni,
+ jclass,
+ jlong j_buffer_pointer) {
reinterpret_cast<webrtc::VideoFrameBuffer*>(j_buffer_pointer)->Release();
}
« no previous file with comments | « webrtc/sdk/android/src/jni/videodecoderwrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698