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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 // Enables the compositing of scrolling content that supports painting the 36 // Enables the compositing of scrolling content that supports painting the
37 // background with the foreground, such that LCD text will still be enabled. 37 // background with the foreground, such that LCD text will still be enabled.
38 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers", 38 const base::Feature kCompositeOpaqueScrollers{"CompositeOpaqueScrollers",
39 base::FEATURE_ENABLED_BY_DEFAULT}; 39 base::FEATURE_ENABLED_BY_DEFAULT};
40 40
41 // Enables the credential management API: 41 // Enables the credential management API:
42 // https://w3c.github.io/webappsec-credential-management/ 42 // https://w3c.github.io/webappsec-credential-management/
43 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI", 43 const base::Feature kCredentialManagementAPI{"CredentialManagementAPI",
44 base::FEATURE_ENABLED_BY_DEFAULT}; 44 base::FEATURE_ENABLED_BY_DEFAULT};
45 45
46 // Enable GPU Rasterization by default. This can still be overridden by
47 // --force-gpu-rasterization or --disable-gpu-rasterization.
48 #if defined(OS_ANDROID) || defined(OS_MACOSX)
49 // DefaultEnableGpuRasterization has launched on Android and Mac.
50 const base::Feature kDefaultEnableGpuRasterization{
51 "DefaultEnableGpuRasterization", base::FEATURE_ENABLED_BY_DEFAULT};
52 #else
53 const base::Feature kDefaultEnableGpuRasterization{
54 "DefaultEnableGpuRasterization", base::FEATURE_DISABLED_BY_DEFAULT};
55 #endif
56
57 // Speculatively pre-evaluate Javascript which will likely use document.write to 46 // Speculatively pre-evaluate Javascript which will likely use document.write to
58 // load an external script. The feature extracts the written markup and sends it 47 // load an external script. The feature extracts the written markup and sends it
59 // to the preload scanner. 48 // to the preload scanner.
60 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator", 49 const base::Feature kDocumentWriteEvaluator{"DocumentWriteEvaluator",
61 base::FEATURE_DISABLED_BY_DEFAULT}; 50 base::FEATURE_DISABLED_BY_DEFAULT};
62 51
63 // Throttle tasks in Blink background timer queues based on CPU budgets 52 // Throttle tasks in Blink background timer queues based on CPU budgets
64 // for the background tab. Bug: https://crbug.com/639852. 53 // for the background tab. Bug: https://crbug.com/639852.
65 const base::Feature kExpensiveBackgroundTimerThrottling{ 54 const base::Feature kExpensiveBackgroundTimerThrottling{
66 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT}; 55 "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT};
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 #endif // !defined(OS_ANDROID) 280 #endif // !defined(OS_ANDROID)
292 281
293 #if defined(OS_WIN) 282 #if defined(OS_WIN)
294 // Emergency "off switch" for new Windows sandbox security mitigation, 283 // Emergency "off switch" for new Windows sandbox security mitigation,
295 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 284 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
296 const base::Feature kWinSboxDisableExtensionPoints{ 285 const base::Feature kWinSboxDisableExtensionPoints{
297 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 286 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
298 #endif 287 #endif
299 288
300 } // namespace features 289 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698