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

Unified Diff: talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc

Issue 1395543004: Android SurfaceTextureHelper: Replace API 21 with API 11 version of setOnFrameAvailableListener() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Construct the SurfaceTexture on the handler thread instead Created 5 years, 2 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 | « talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc
diff --git a/talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc b/talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc
index 93dc4e64f9a30f00d0576095611ff703c1294664..d161aa4aff6ffaba37259050f65e04d243324b98 100644
--- a/talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc
+++ b/talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc
@@ -64,19 +64,18 @@ SurfaceTextureHelper::SurfaceTextureHelper(JNIEnv* jni,
: j_surface_texture_helper_class_(
jni,
FindClass(jni, "org/webrtc/SurfaceTextureHelper")),
- j_surface_texture_helper_(
- jni,
- jni->NewObject(*j_surface_texture_helper_class_,
- GetMethodID(jni,
- *j_surface_texture_helper_class_,
- "<init>",
- "(Landroid/opengl/EGLContext;)V"),
- egl_shared_context)),
- j_return_texture_method_(
- GetMethodID(jni,
- *j_surface_texture_helper_class_,
- "returnTextureFrame",
- "()V")) {
+ j_surface_texture_helper_(jni, jni->CallStaticObjectMethod(
+ *j_surface_texture_helper_class_,
+ GetStaticMethodID(
+ jni,
+ *j_surface_texture_helper_class_,
+ "create",
+ "(Landroid/opengl/EGLContext;)Lorg/webrtc/SurfaceTextureHelper;"),
+ egl_shared_context)),
+ j_return_texture_method_(GetMethodID(jni,
+ *j_surface_texture_helper_class_,
+ "returnTextureFrame",
+ "()V")) {
CHECK_EXCEPTION(jni) << "error during initialization of SurfaceTextureHelper";
}
« no previous file with comments | « talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698