Bug 604090 - Notify java wrapper when we're ready to take events, r=blassey a=blocking-fennec
This commit is contained in:
@@ -136,8 +136,6 @@ class GeckoAppShell
|
||||
// Tell Gecko where the target surface view is for rendering
|
||||
GeckoAppShell.setSurfaceView(GeckoApp.surfaceView);
|
||||
|
||||
sGeckoRunning = true;
|
||||
|
||||
// First argument is the .apk path
|
||||
String combinedArgs = apkPath + " -omnijar " + apkPath;
|
||||
if (args != null)
|
||||
@@ -146,10 +144,6 @@ class GeckoAppShell
|
||||
combinedArgs += " " + url;
|
||||
// and go
|
||||
GeckoAppShell.nativeRun(combinedArgs);
|
||||
if (gPendingResize != null) {
|
||||
notifyGeckoOfEvent(gPendingResize);
|
||||
gPendingResize = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static GeckoEvent mLastDrawEvent;
|
||||
@@ -337,6 +331,15 @@ class GeckoAppShell
|
||||
}
|
||||
}
|
||||
|
||||
static void onAppShellReady()
|
||||
{
|
||||
sGeckoRunning = true;
|
||||
if (gPendingResize != null) {
|
||||
notifyGeckoOfEvent(gPendingResize);
|
||||
gPendingResize = null;
|
||||
}
|
||||
}
|
||||
|
||||
static void onXreExit() {
|
||||
sGeckoRunning = false;
|
||||
Log.i("GeckoAppJava", "XRE exited");
|
||||
|
||||
Reference in New Issue
Block a user