summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 21:01:21 +0000
committerkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 21:01:21 +0000
commit3306b3ed35a2501ad2b517e10b09940b85072d33 (patch)
treeb4cd39c70d26c075cacae1f2d595ee0c431e9001 /webkit
parente888d1b13a4785adf3b5db897becd6a644a4e3ad (diff)
downloadchromium_src-3306b3ed35a2501ad2b517e10b09940b85072d33.zip
chromium_src-3306b3ed35a2501ad2b517e10b09940b85072d33.tar.gz
chromium_src-3306b3ed35a2501ad2b517e10b09940b85072d33.tar.bz2
Increase the minimum interval for timers on background tabs to reduce
their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility impact of this change. BUG=66078 TEST=none (tested manually with minimal test case) Review URL: http://codereview.chromium.org/6546021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webkit_constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/webkit_constants.h b/webkit/glue/webkit_constants.h
index 54e7e00..a209b52 100644
--- a/webkit/glue/webkit_constants.h
+++ b/webkit/glue/webkit_constants.h
@@ -15,7 +15,7 @@ namespace webkit_glue {
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
-const double kBackgroundTabTimerInterval = 0.004;
+const double kBackgroundTabTimerInterval = 1.0;
} // namespace webkit_glue