Bug 1086693 - Part 6: Use generated bindings for AndroidMediaCodec and AndroidSurfaceTexture r=blassey,gcp

This commit is contained in:
James Willcox
2014-11-13 12:47:24 -06:00
parent 03b0742d34
commit 4da97db54f
13 changed files with 181 additions and 2511 deletions

View File

@@ -41,7 +41,9 @@
#include "nsContentUtils.h"
#include "nsIScriptError.h"
#include "nsIHttpChannel.h"
#include "GeneratedSDKWrappers.h"
#include "MediaCodec.h"
#include "SurfaceTexture.h"
using namespace mozilla;
using namespace mozilla::widget::android;
@@ -222,8 +224,11 @@ AndroidBridge::Init(JNIEnv *jEnv)
InitAndroidJavaWrappers(jEnv);
if (mAPIVersion >= 16 /* Jelly Bean */) {
// We only use this for MediaCodec right now
InitSDKStubs(jEnv);
sdk::InitMediaCodecStubs(jEnv);
}
if (mAPIVersion >= 14 /* ICS */) {
sdk::InitSurfaceTextureStubs(jEnv);
}
// jEnv should NOT be cached here by anything -- the jEnv here