commit d18227084c2cbe64d7e6b0aa6076c38402f8e47c
parent 2e834c389bb28e1bd3de9b818c75ad059de54bf5
Author: Brad Werth <werth@efn.org>
Date: Thu, 13 Nov 2025 00:43:15 +0000
Bug 1985327 Part 2: Make Windows handle PROCESS_PRIORITY_FOREGROUND_HIGH. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D272102
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/hal/windows/WindowsProcessPriority.cpp b/hal/windows/WindowsProcessPriority.cpp
@@ -26,6 +26,8 @@ void SetProcessPriority(int aPid, ProcessPriority aPriority) {
priority = IDLE_PRIORITY_CLASS;
} else if (aPriority == PROCESS_PRIORITY_BACKGROUND_PERCEIVABLE) {
priority = BELOW_NORMAL_PRIORITY_CLASS;
+ } else if (aPriority == PROCESS_PRIORITY_FOREGROUND_HIGH) {
+ priority = ABOVE_NORMAL_PRIORITY_CLASS;
}
if (::SetPriorityClass(processHandle, priority)) {