[MessageLoop] Disable hi-res timers when not sleeping
Time::ActivateHighResolutionTimer(bool activating) is a per-thread vote for a system-wide side-effect. For a given thread, hi-res timers are only useful when going to sleep (if it has pending hi-res tasks). Deactivating a thread's vote while it's active will prevent other threads on the system which do not have hi-res requirements from being forced to use hi-res timers in that period. Bug: 854237 Change-Id: I1393e184cac6c9321d13b92b6077a38c62b1f590 Reviewed-on: https://chromium-review.googlesource.com/1107110Reviewed-by:danakj <danakj@chromium.org> Reviewed-by:
kylechar <kylechar@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#574259}
Showing
Please register or sign in to comment