summaryrefslogtreecommitdiffstats
path: root/components/scheduler/renderer
diff options
context:
space:
mode:
authoralexclarke <alexclarke@chromium.org>2015-06-18 15:44:03 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-18 22:45:37 +0000
commitbbc668f47d7275c755046f962e40351337a569b7 (patch)
treea2bea2b87ab109b3fdfa2e9aa9e96f6ff61e1577 /components/scheduler/renderer
parent8e1e026913c6717bfd7f399dbcbe249692e2920a (diff)
downloadchromium_src-bbc668f47d7275c755046f962e40351337a569b7.zip
chromium_src-bbc668f47d7275c755046f962e40351337a569b7.tar.gz
chromium_src-bbc668f47d7275c755046f962e40351337a569b7.tar.bz2
Increase the idle period timer starvation threshold to 10s
The effect of this is, when in in compositor priority with the main frame on the critical path, we will limit timers to running in idle periods, if there has been any idle period within the last 10s. BUG=463143 Review URL: https://codereview.chromium.org/1187433007 Cr-Commit-Position: refs/heads/master@{#335150}
Diffstat (limited to 'components/scheduler/renderer')
-rw-r--r--components/scheduler/renderer/renderer_scheduler_impl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/scheduler/renderer/renderer_scheduler_impl.h b/components/scheduler/renderer/renderer_scheduler_impl.h
index f90ac45..e00d662 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl.h
+++ b/components/scheduler/renderer/renderer_scheduler_impl.h
@@ -139,8 +139,9 @@ class SCHEDULER_EXPORT RendererSchedulerImpl : public RendererScheduler,
// For the purposes of deciding whether or not it's safe to turn timers on
// only in idle periods, we regard the system as being as being "idle period"
- // starved if there hasn't been an idle period in the last 100 ms.
- static const int kIdlePeriodStarvationThresholdMillis = 100;
+ // starved if there hasn't been an idle period in the last 10 seconds. This
+ // was chosen to be long enough to cover most anticipated user gestures.
+ static const int kIdlePeriodStarvationThresholdMillis = 10000;
// Schedules an immediate PolicyUpdate, if there isn't one already pending and
// sets |policy_may_need_update_|. Note |any_thread_lock_| must be