mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1157030 - Stop special-casing the homescreen in the process priority manager. r=khuey, r=dhylands
This commit is contained in:
parent
0012e30dd4
commit
538fab5de5
@ -740,13 +740,9 @@ pref("hal.processPriorityManager.gonk.FOREGROUND_KEYBOARD.OomScoreAdjust", 200);
|
||||
pref("hal.processPriorityManager.gonk.FOREGROUND_KEYBOARD.cgroup", "apps");
|
||||
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.OomScoreAdjust", 400);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.KillUnderKB", 7168);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.KillUnderKB", 8192);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_PERCEIVABLE.cgroup", "apps/bg_perceivable");
|
||||
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.OomScoreAdjust", 534);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.KillUnderKB", 8192);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND_HOMESCREEN.cgroup", "apps/bg_non_interactive");
|
||||
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND.OomScoreAdjust", 667);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND.KillUnderKB", 20480);
|
||||
pref("hal.processPriorityManager.gonk.BACKGROUND.cgroup", "apps/bg_non_interactive");
|
||||
|
@ -1012,9 +1012,7 @@ ParticularProcessPriorityManager::ComputePriority()
|
||||
return PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE;
|
||||
}
|
||||
|
||||
return HasAppType("homescreen") ?
|
||||
PROCESS_PRIORITY_BACKGROUND_HOMESCREEN :
|
||||
PROCESS_PRIORITY_BACKGROUND;
|
||||
return PROCESS_PRIORITY_BACKGROUND;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -888,8 +888,6 @@ ProcessPriorityToString(ProcessPriority aPriority)
|
||||
return "FOREGROUND_KEYBOARD";
|
||||
case PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE:
|
||||
return "BACKGROUND_PERCEIVABLE";
|
||||
case PROCESS_PRIORITY_BACKGROUND_HOMESCREEN:
|
||||
return "BACKGROUND_HOMESCREEN";
|
||||
case PROCESS_PRIORITY_BACKGROUND:
|
||||
return "BACKGROUND";
|
||||
case PROCESS_PRIORITY_UNKNOWN:
|
||||
|
@ -58,7 +58,6 @@ typedef Observer<SwitchEvent> SwitchObserver;
|
||||
enum ProcessPriority {
|
||||
PROCESS_PRIORITY_UNKNOWN = -1,
|
||||
PROCESS_PRIORITY_BACKGROUND,
|
||||
PROCESS_PRIORITY_BACKGROUND_HOMESCREEN,
|
||||
PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE,
|
||||
PROCESS_PRIORITY_FOREGROUND_KEYBOARD,
|
||||
// The special class for the preallocated process, high memory priority but
|
||||
|
Loading…
Reference in New Issue
Block a user