Bug 1395497 - Regenerate JNI binding r=me

MozReview-Commit-ID: D1zqIMsH1fH
This commit is contained in:
James Willcox 2017-09-27 18:15:24 -05:00
Родитель 1ee57ae7a7
Коммит 91a9c48755
3 изменённых файлов: 88 добавлений и 36 удалений

Просмотреть файл

@ -353,21 +353,6 @@ const JNINativeMethod SurfaceTextureListener::Natives<Impl>::methods[] = {
::template Wrap<&Impl::OnFrameAvailable>)
};
template<class Impl>
class GeckoSurfaceTexture::Natives : public mozilla::jni::NativeImpl<GeckoSurfaceTexture, Impl>
{
public:
static const JNINativeMethod methods[1];
};
template<class Impl>
const JNINativeMethod GeckoSurfaceTexture::Natives<Impl>::methods[] = {
mozilla::jni::MakeNativeMethod<GeckoSurfaceTexture::NativeAcquireTexture_t>(
mozilla::jni::NativeStub<GeckoSurfaceTexture::NativeAcquireTexture_t, Impl>
::template Wrap<&Impl::NativeAcquireTexture>)
};
template<class Impl>
class LayerView::Compositor::Natives : public mozilla::jni::NativeImpl<Compositor, Impl>
{

Просмотреть файл

@ -1120,6 +1120,16 @@ auto GeckoSurface::SetAvailable(bool a0) const -> void
const char GeckoSurfaceTexture::name[] =
"org/mozilla/gecko/gfx/GeckoSurfaceTexture";
constexpr char GeckoSurfaceTexture::AttachToGLContext_t::name[];
constexpr char GeckoSurfaceTexture::AttachToGLContext_t::signature[];
auto GeckoSurfaceTexture::AttachToGLContext(int64_t a0, int32_t a1) const -> nsresult
{
nsresult rv = NS_OK;
mozilla::jni::Method<AttachToGLContext_t>::Call(GeckoSurfaceTexture::mCtx, &rv, a0, a1);
return rv;
}
constexpr char GeckoSurfaceTexture::DecrementUse_t::name[];
constexpr char GeckoSurfaceTexture::DecrementUse_t::signature[];
@ -1128,6 +1138,16 @@ auto GeckoSurfaceTexture::DecrementUse() const -> void
return mozilla::jni::Method<DecrementUse_t>::Call(GeckoSurfaceTexture::mCtx, nullptr);
}
constexpr char GeckoSurfaceTexture::DetachFromGLContext_t::name[];
constexpr char GeckoSurfaceTexture::DetachFromGLContext_t::signature[];
auto GeckoSurfaceTexture::DetachFromGLContext() const -> nsresult
{
nsresult rv = NS_OK;
mozilla::jni::Method<DetachFromGLContext_t>::Call(GeckoSurfaceTexture::mCtx, &rv);
return rv;
}
constexpr char GeckoSurfaceTexture::GetHandle_t::name[];
constexpr char GeckoSurfaceTexture::GetHandle_t::signature[];
@ -1152,6 +1172,14 @@ auto GeckoSurfaceTexture::IncrementUse() const -> void
return mozilla::jni::Method<IncrementUse_t>::Call(GeckoSurfaceTexture::mCtx, nullptr);
}
constexpr char GeckoSurfaceTexture::IsAttachedToGLContext_t::name[];
constexpr char GeckoSurfaceTexture::IsAttachedToGLContext_t::signature[];
auto GeckoSurfaceTexture::IsAttachedToGLContext(int64_t a0) const -> bool
{
return mozilla::jni::Method<IsAttachedToGLContext_t>::Call(GeckoSurfaceTexture::mCtx, nullptr, a0);
}
constexpr char GeckoSurfaceTexture::IsSingleBuffer_t::name[];
constexpr char GeckoSurfaceTexture::IsSingleBuffer_t::signature[];
@ -1176,9 +1204,6 @@ auto GeckoSurfaceTexture::Lookup(int32_t a0) -> GeckoSurfaceTexture::LocalRef
return mozilla::jni::Method<Lookup_t>::Call(GeckoSurfaceTexture::Context(), nullptr, a0);
}
constexpr char GeckoSurfaceTexture::NativeAcquireTexture_t::name[];
constexpr char GeckoSurfaceTexture::NativeAcquireTexture_t::signature[];
constexpr char GeckoSurfaceTexture::ReleaseTexImage_t::name[];
constexpr char GeckoSurfaceTexture::ReleaseTexImage_t::signature[];

Просмотреть файл

@ -3460,6 +3460,27 @@ public:
explicit GeckoSurfaceTexture(const Context& ctx) : ObjectBase<GeckoSurfaceTexture>(ctx) {}
struct AttachToGLContext_t {
typedef GeckoSurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int64_t,
int32_t> Args;
static constexpr char name[] = "attachToGLContext";
static constexpr char signature[] =
"(JI)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto AttachToGLContext(int64_t, int32_t) const -> nsresult;
struct DecrementUse_t {
typedef GeckoSurfaceTexture Owner;
typedef void ReturnType;
@ -3479,6 +3500,25 @@ public:
auto DecrementUse() const -> void;
struct DetachFromGLContext_t {
typedef GeckoSurfaceTexture Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "detachFromGLContext";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::NSRESULT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto DetachFromGLContext() const -> nsresult;
struct GetHandle_t {
typedef GeckoSurfaceTexture Owner;
typedef int32_t ReturnType;
@ -3536,6 +3576,26 @@ public:
auto IncrementUse() const -> void;
struct IsAttachedToGLContext_t {
typedef GeckoSurfaceTexture Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
int64_t> Args;
static constexpr char name[] = "isAttachedToGLContext";
static constexpr char signature[] =
"(J)Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto IsAttachedToGLContext(int64_t) const -> bool;
struct IsSingleBuffer_t {
typedef GeckoSurfaceTexture Owner;
typedef bool ReturnType;
@ -3594,23 +3654,6 @@ public:
static auto Lookup(int32_t) -> GeckoSurfaceTexture::LocalRef;
struct NativeAcquireTexture_t {
typedef GeckoSurfaceTexture Owner;
typedef int32_t ReturnType;
typedef int32_t SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "nativeAcquireTexture";
static constexpr char signature[] =
"()I";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
struct ReleaseTexImage_t {
typedef GeckoSurfaceTexture Owner;
typedef void ReturnType;
@ -3652,7 +3695,6 @@ public:
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
class LayerView : public mozilla::jni::ObjectBase<LayerView>