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

Unified Diff: webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc

Issue 3002553002: Add support for adding VideoSinks to VideoTracks. (Closed)
Patch Set: Add documentation, fix bug. 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/wrapped_native_i420_buffer.h ('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 c9b691e11463a5083a97b1961d73e991b63f46c8..c5bbe5a34f00a87dd8109fc606f9ad64e99f339a 100644
--- a/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
+++ b/webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc
@@ -17,10 +17,8 @@ namespace webrtc_jni {
// TODO(magjed): Write a test for this function.
jobject WrapI420Buffer(
+ JNIEnv* jni,
const rtc::scoped_refptr<webrtc::I420BufferInterface>& i420_buffer) {
- JNIEnv* jni = AttachCurrentThreadIfNeeded();
- ScopedLocalRefFrame local_ref_frame(jni);
-
jclass j_wrapped_native_i420_buffer_class =
FindClass(jni, "org/webrtc/WrappedNativeI420Buffer");
jmethodID j_wrapped_native_i420_buffer_ctor_id =
« no previous file with comments | « webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698