0
Files
src/content/gpu
Chris Davis 3360a37184 Ensure Windows does not throttle high resolution timers
On Windows 11, when the browser is occluded by another window or
minimized, Windows will throttle any high resolution timers in the
browser and all child processes. This includes renderers that could be
playing audio or utility processes that use high resolution timers
extensively such as the mirroring service for casting. The browser
needs to explicitly tell windows via the SetProcessInformation api to
not throttle the timers using the
PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION flag. This change also
wraps calls to SetProcessInformation and GetProcessInformation for the
power throttling state to helpers in win_util.

Bug: 41485685
Change-Id: I90613ba9b4262b0c474aea148fef9bdae65d4225
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6203513
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Patrick Monette <pmonette@chromium.org>
Commit-Queue: Chris Davis <chrdavis@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1417052}
2025-02-06 15:21:30 -08:00
..