Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp

This commit is contained in:
Jim Chen
2015-04-27 20:52:52 -04:00
parent 3a3f2d881d
commit 13969fb4ad
10 changed files with 62 additions and 70 deletions

View File

@@ -248,7 +248,8 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
// (bug 750713). Looper messages effectively have the lowest
// priority because we only process them before we're about to
// wait for new events.
if (widget::GeckoAppShell::PumpMessageLoop()) {
if (AndroidBridge::HasEnv() &&
AndroidBridge::Bridge()->PumpMessageLoop()) {
return true;
}