Source code
Generated file
Copy as Markdown
Other Tools
// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef mozilla_java_RemoteSurfaceAllocatorWrappers_h
#define mozilla_java_RemoteSurfaceAllocatorWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class RemoteSurfaceAllocator : public mozilla::jni::ObjectBase<RemoteSurfaceAllocator>
{
public:
static constexpr char name[] =
"org/mozilla/gecko/gfx/RemoteSurfaceAllocator";
explicit RemoteSurfaceAllocator(const Context& ctx) : ObjectBase<RemoteSurfaceAllocator>(ctx) {}
// Suggested header signature for native method:
// static mozilla::jni::Object::LocalRef CreateImageReaderSurface(int64_t);
struct CreateImageReaderSurface_t {
typedef RemoteSurfaceAllocator Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
int64_t> Args;
static constexpr char name[] = "createImageReaderSurface";
static constexpr char signature[] =
"(J)Landroid/view/Surface;";
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;
};
// Suggested header signature for native method:
// static void DisposeImageReaderSurface(int64_t);
struct DisposeImageReaderSurface_t {
typedef RemoteSurfaceAllocator Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int64_t> Args;
static constexpr char name[] = "disposeImageReaderSurface";
static constexpr char signature[] =
"(J)V";
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;
};
// Suggested header signature for native method:
// static void MaybeRenderImageReaderFirstFrameNative(int64_t, int64_t);
struct MaybeRenderImageReaderFirstFrameNative_t {
typedef RemoteSurfaceAllocator Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int64_t,
int64_t> Args;
static constexpr char name[] = "maybeRenderImageReaderFirstFrameNative";
static constexpr char signature[] =
"(JJ)V";
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;
};
// Suggested header signature for native method:
// static void NotifyImageReaderFrameReleaseFailedNative(int64_t, int64_t);
struct NotifyImageReaderFrameReleaseFailedNative_t {
typedef RemoteSurfaceAllocator Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int64_t,
int64_t> Args;
static constexpr char name[] = "notifyImageReaderFrameReleaseFailedNative";
static constexpr char signature[] =
"(JJ)V";
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 ReleaseImageReaderFrame_t {
typedef RemoteSurfaceAllocator Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
int64_t,
int64_t,
int64_t,
bool> Args;
static constexpr char name[] = "releaseImageReaderFrame";
static constexpr char signature[] =
"(JJJZ)Z";
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;
};
// static boolean releaseImageReaderFrame(long, long, long, boolean)
static auto ReleaseImageReaderFrame(int64_t, int64_t, int64_t, bool) -> bool;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_RemoteSurfaceAllocatorWrappers_h