1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef AndroidLayerViewWrapper_h__
7 #define AndroidLayerViewWrapper_h__
12 class AndroidEGLObject
{
14 static void Init(JNIEnv
* aJEnv
);
17 typedef void* EGLSurface
;
19 class AndroidGLController
{
21 static void Init(JNIEnv
* aJEnv
);
23 void Acquire(JNIEnv
* aJEnv
, jobject aJObj
);
24 void Reacquire(JNIEnv
* aJEnv
, jobject aJObj
);
25 EGLSurface
ProvideEGLSurface();
26 void WaitForValidSurface();
29 static jmethodID jWaitForValidSurfaceMethod
;
30 static jmethodID jProvideEGLSurfaceMethod
;
31 static jmethodID jResumeCompositorIfValidMethod
;
33 // the JNIEnv for the compositor thread