Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: webkit/glue/webkit_constants.h

Issue 6577021: Increased the minimum timer interval for background tabs to 1000... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ 5 #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
6 #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ 6 #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
7 7
8 namespace webkit_glue { 8 namespace webkit_glue {
9 9
10 // Chromium sets the minimum interval timeout to 4ms, overriding the 10 // Chromium sets the minimum interval timeout to 4ms, overriding the
11 // default of 10ms. We'd like to go lower, however there are poorly 11 // default of 10ms. We'd like to go lower, however there are poorly
12 // coded websites out there which do create CPU-spinning loops. Using 12 // coded websites out there which do create CPU-spinning loops. Using
13 // 4ms prevents the CPU from spinning too busily and provides a balance 13 // 4ms prevents the CPU from spinning too busily and provides a balance
14 // between CPU spinning and the smallest possible interval timer. 14 // between CPU spinning and the smallest possible interval timer.
15 const double kForegroundTabTimerInterval = 0.004; 15 const double kForegroundTabTimerInterval = 0.004;
16 16
17 // Provides control over the minimum timer interval for background tabs. 17 // Provides control over the minimum timer interval for background tabs.
18 const double kBackgroundTabTimerInterval = 0.004; 18 const double kBackgroundTabTimerInterval = 1.0;
19 19
20 } // namespace webkit_glue 20 } // namespace webkit_glue
21 21
22 #endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ 22 #endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698