зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1594820: Part 4 - Modify GeckoThread.preload to directly call into the process manager; r=geckoview-reviewers,snorp
Now that everything in `GeckoProcessManager` runs on the XPCOM launcher thread, `GeckoThread` should just call `GeckoProcessManager.preload()` directly. Differential Revision: https://phabricator.services.mozilla.com/D57840 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ed64053aec
Коммит
c21015215b
|
@ -448,13 +448,8 @@ public class GeckoThread extends Thread {
|
|||
initGeckoEnvironment();
|
||||
|
||||
if ((mInitInfo.flags & FLAG_PRELOAD_CHILD) != 0) {
|
||||
ThreadUtils.postToBackgroundThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// Preload the content ("tab") child process.
|
||||
GeckoProcessManager.getInstance().preload("tab");
|
||||
}
|
||||
});
|
||||
// Preload the content ("tab") child process.
|
||||
GeckoProcessManager.getInstance().preload("tab");
|
||||
}
|
||||
|
||||
if ((mInitInfo.flags & FLAG_DEBUGGING) != 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче