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

Side by Side Diff: content/public/common/content_features.cc

Issue 2345483002: [scheduler] Throttle background frames with 1% CPU limit (Closed)
Patch Set: Rebased Created 4 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 27 matching lines...) Expand all
38 // --force-gpu-rasterization or --disable-gpu-rasterization. 38 // --force-gpu-rasterization or --disable-gpu-rasterization.
39 const base::Feature kDefaultEnableGpuRasterization{ 39 const base::Feature kDefaultEnableGpuRasterization{
40 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; 40 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
41 41
42 // Speculatively pre-evaluate Javascript which will likely use document.write to 42 // Speculatively pre-evaluate Javascript which will likely use document.write to
43 // load an external script. The feature extracts the written markup and sends it 43 // load an external script. The feature extracts the written markup and sends it
44 // to the preload scanner. 44 // to the preload scanner.
45 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", 45 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator",
46 base::FEATURE_DISABLED_BY_DEFAULT}; 46 base::FEATURE_DISABLED_BY_DEFAULT};
47 47
48 // Throttle tasks in Blink background timer queues based on CPU budgets
49 // for the background tab. Bug: https://crbug.com/639852.
50 const base::Feature kExpensiveBackgroundTimerThrottling{
51 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT};
52
48 // Enables the Feature Policy framework for granting and removing access to 53 // Enables the Feature Policy framework for granting and removing access to
49 // other features through HTTP headers. 54 // other features through HTTP headers.
50 const base::Feature kFeaturePolicy{"FeaturePolicy", 55 const base::Feature kFeaturePolicy{"FeaturePolicy",
51 base::FEATURE_DISABLED_BY_DEFAULT}; 56 base::FEATURE_DISABLED_BY_DEFAULT};
52 57
53 // Enables a blink::FontCache optimization that reuses a font to serve different 58 // Enables a blink::FontCache optimization that reuses a font to serve different
54 // size of font. 59 // size of font.
55 const base::Feature kFontCacheScaling{"FontCacheScaling", 60 const base::Feature kFontCacheScaling{"FontCacheScaling",
56 base::FEATURE_DISABLED_BY_DEFAULT}; 61 base::FEATURE_DISABLED_BY_DEFAULT};
57 62
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 #endif 234 #endif
230 235
231 #if defined(OS_WIN) 236 #if defined(OS_WIN)
232 // Emergency "off switch" for new Windows sandbox security mitigation, 237 // Emergency "off switch" for new Windows sandbox security mitigation,
233 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 238 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
234 const base::Feature kWinSboxDisableExtensionPoints{ 239 const base::Feature kWinSboxDisableExtensionPoints{
235 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 240 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
236 #endif 241 #endif
237 242
238 } // namespace features 243 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698