| Index: content/browser/android/surface_texture_peer_browser_impl.cc
|
| diff --git a/content/browser/android/surface_texture_peer_browser_impl.cc b/content/browser/android/surface_texture_peer_browser_impl.cc
|
| index a68286df08b6e8fc247b8d5a5e9a6e6429f303ea..b95c351ec12ca994766108f67be9fa4542351e20 100644
|
| --- a/content/browser/android/surface_texture_peer_browser_impl.cc
|
| +++ b/content/browser/android/surface_texture_peer_browser_impl.cc
|
| @@ -12,6 +12,8 @@
|
| #include "jni/BrowserProcessSurfaceTexture_jni.h"
|
| #include "media/base/android/media_player_bridge.h"
|
|
|
| +using base::android::MethodID;
|
| +
|
| namespace content {
|
|
|
| // Pass a java surface object to the MediaPlayerBridge object
|
| @@ -76,8 +78,8 @@ void SurfaceTexturePeerBrowserImpl::EstablishSurfaceTexturePeer(
|
| } else {
|
| base::android::ScopedJavaLocalRef<jclass> cls(
|
| base::android::GetClass(env, "android/view/Surface"));
|
| - jmethodID constructor = GetMethodID(env, cls, "<init>",
|
| - "(Landroid/graphics/SurfaceTexture;)V");
|
| + jmethodID constructor = MethodID::Get<MethodID::METHODTYPE_NORMAL>(
|
| + env, cls.obj(), "<init>", "(Landroid/graphics/SurfaceTexture;)V");
|
| ScopedJavaLocalRef<jobject> tmp(env,
|
| env->NewObject(cls.obj(), constructor, j_surface_texture));
|
| jobject surface = env->NewGlobalRef(tmp.obj());
|
|
|