Stub untested gralloc support, disabled for now

This commit is contained in:
Patrick Walton
2012-02-17 23:53:21 -08:00
parent b2469c7168
commit 640e642b7d
8 changed files with 522 additions and 3 deletions

View File

@@ -56,6 +56,8 @@
#endif
#endif
struct ANativeWindow;
namespace mozilla {
class AndroidGeckoGLLayerClient;
@@ -153,6 +155,23 @@ protected:
static jfieldID jTopField;
};
class AndroidSurfaceView : public WrappedJavaObject {
public:
static void InitSurfaceViewClass(JNIEnv *jEnv);
AndroidSurfaceView() {}
AndroidSurfaceView(JNIEnv *jEnv, jobject jobj) {
Init(jEnv, jobj);
}
void Init(JNIEnv *jEnv, jobject jobj);
ANativeWindow* GetNativeWindow();
private:
static jclass jSurfaceViewClass;
static jfieldID jNativeSurfaceField;
};
class AndroidGeckoLayerClient : public WrappedJavaObject {
public:
static void InitGeckoLayerClientClass(JNIEnv *jEnv);
@@ -248,6 +267,8 @@ public:
void CreateFrame(AndroidLayerRendererFrame& aFrame);
void ActivateProgram();
void DeactivateProgram();
void CreateSurfaceViewForBackingSurface(AndroidSurfaceView& aSurfaceView, int aWidth,
int aHeight);
private:
static jclass jGeckoGLLayerClientClass;
@@ -255,6 +276,7 @@ private:
static jmethodID jCreateFrameMethod;
static jmethodID jActivateProgramMethod;
static jmethodID jDeactivateProgramMethod;
static jmethodID jCreateSurfaceViewForBackingSurfaceMethod;
AndroidGeckoGLLayerClientViewTransformGetter mViewTransformGetter;
};