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

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

Issue 2409653003: [Merge to 2883] Revert "[scheduler] Throttle background frames with 1% CPU limit" (Closed)
Patch Set: 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 22 matching lines...) Expand all
33 // --force-gpu-rasterization or --disable-gpu-rasterization. 33 // --force-gpu-rasterization or --disable-gpu-rasterization.
34 const base::Feature kDefaultEnableGpuRasterization{ 34 const base::Feature kDefaultEnableGpuRasterization{
35 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT}; 35 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
36 36
37 // Speculatively pre-evaluate Javascript which will likely use document.write to 37 // Speculatively pre-evaluate Javascript which will likely use document.write to
38 // load an external script. The feature extracts the written markup and sends it 38 // load an external script. The feature extracts the written markup and sends it
39 // to the preload scanner. 39 // to the preload scanner.
40 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", 40 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator",
41 base::FEATURE_DISABLED_BY_DEFAULT}; 41 base::FEATURE_DISABLED_BY_DEFAULT};
42 42
43 // Throttle tasks in Blink background timer queues based on CPU budgets
44 // for the background tab. Bug: https://crbug.com/639852.
45 const base::Feature kExpensiveBackgroundTimerThrottling{
46 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT};
47
48 // Enables the Feature Policy framework for granting and removing access to 43 // Enables the Feature Policy framework for granting and removing access to
49 // other features through HTTP headers. 44 // other features through HTTP headers.
50 const base::Feature kFeaturePolicy{"FeaturePolicy", 45 const base::Feature kFeaturePolicy{"FeaturePolicy",
51 base::FEATURE_DISABLED_BY_DEFAULT}; 46 base::FEATURE_DISABLED_BY_DEFAULT};
52 47
53 // Enables a blink::FontCache optimization that reuses a font to serve different 48 // Enables a blink::FontCache optimization that reuses a font to serve different
54 // size of font. 49 // size of font.
55 const base::Feature kFontCacheScaling{"FontCacheScaling", 50 const base::Feature kFontCacheScaling{"FontCacheScaling",
56 base::FEATURE_DISABLED_BY_DEFAULT}; 51 base::FEATURE_DISABLED_BY_DEFAULT};
57 52
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 209 #endif
215 210
216 #if defined(OS_WIN) 211 #if defined(OS_WIN)
217 // Emergency "off switch" for new Windows sandbox security mitigation, 212 // Emergency "off switch" for new Windows sandbox security mitigation,
218 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 213 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
219 const base::Feature kWinSboxDisableExtensionPoints{ 214 const base::Feature kWinSboxDisableExtensionPoints{
220 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 215 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
221 #endif 216 #endif
222 217
223 } // namespace features 218 } // 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