Bug 604090 - Notify java wrapper when we're ready to take events, r=blassey a=blocking-fennec

This commit is contained in:
Michael Wu
2010-10-25 20:10:07 -07:00
parent f79f8f2c1d
commit f7b6c55e54
6 changed files with 23 additions and 22 deletions

View File

@@ -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");