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

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

Issue 898483004: Add --{enable,disable}-blink-features flags which set RuntimeEnabledFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address jochen review comments Created 5 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_switches.h ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
10 // have an effect. 0 disables MSAA. 10 // have an effect. 0 disables MSAA.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; 77 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";
78 78
79 // Disables hardware acceleration of video decode, where available. 79 // Disables hardware acceleration of video decode, where available.
80 const char kDisableAcceleratedVideoDecode[] = 80 const char kDisableAcceleratedVideoDecode[] =
81 "disable-accelerated-video-decode"; 81 "disable-accelerated-video-decode";
82 82
83 // Disable limits on the number of backing stores. Can prevent blinking for 83 // Disable limits on the number of backing stores. Can prevent blinking for
84 // users with many windows/tabs and lots of memory. 84 // users with many windows/tabs and lots of memory.
85 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 85 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
86 86
87 // Disable one or more Blink runtime-enabled features.
88 // Use names from RuntimeEnabledFeatures.in, separated by commas.
89 // Applied after kEnableBlinkFeatures, and after other flags that change these
90 // features.
91 const char kDisableBlinkFeatures[] = "disable-blink-features";
92
87 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks. 93 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks.
88 // This switch is intended only for performance tests. 94 // This switch is intended only for performance tests.
89 const char kDisableBlinkScheduler[] = "disable-blink-scheduler"; 95 const char kDisableBlinkScheduler[] = "disable-blink-scheduler";
90 96
91 // Disable the creation of compositing layers when it would prevent LCD text. 97 // Disable the creation of compositing layers when it would prevent LCD text.
92 const char kDisablePreferCompositingToLCDText[] = 98 const char kDisablePreferCompositingToLCDText[] =
93 "disable-prefer-compositing-to-lcd-text"; 99 "disable-prefer-compositing-to-lcd-text";
94 100
95 // Disables HTML5 DB support. 101 // Disables HTML5 DB support.
96 const char kDisableDatabases[] = "disable-databases"; 102 const char kDisableDatabases[] = "disable-databases";
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // Enable the experimental Credential Manager JavaScript API. 284 // Enable the experimental Credential Manager JavaScript API.
279 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; 285 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
280 286
281 // Use a BeginFrame signal from browser to renderer to schedule rendering. 287 // Use a BeginFrame signal from browser to renderer to schedule rendering.
282 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; 288 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
283 289
284 // Enable the creation of compositing layers when it would prevent LCD text. 290 // Enable the creation of compositing layers when it would prevent LCD text.
285 const char kEnablePreferCompositingToLCDText[] = 291 const char kEnablePreferCompositingToLCDText[] =
286 "enable-prefer-compositing-to-lcd-text"; 292 "enable-prefer-compositing-to-lcd-text";
287 293
294 // Disable one or more Blink runtime-enabled features.
295 // Use names from RuntimeEnabledFeatures.in, separated by commas.
296 // Applied before kDisableBlinkFeatures, and after other flags that change these
297 // features.
298 const char kEnableBlinkFeatures[] = "enable-blink-features";
299
288 // PlzNavigate: Use the experimental browser-side navigation path. 300 // PlzNavigate: Use the experimental browser-side navigation path.
289 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation"; 301 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation";
290 302
291 // Defer image decoding in WebKit until painting. 303 // Defer image decoding in WebKit until painting.
292 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; 304 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding";
293 305
294 // Enables Delay Agnostic AEC in WebRTC. 306 // Enables Delay Agnostic AEC in WebRTC.
295 const char kEnableDelayAgnosticAec[] = "enable-delay-agnostic-aec"; 307 const char kEnableDelayAgnosticAec[] = "enable-delay-agnostic-aec";
296 308
297 // Enables delegated renderer. 309 // Enables delegated renderer.
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 const char kEnableNpapi[] = "enable-npapi"; 967 const char kEnableNpapi[] = "enable-npapi";
956 968
957 #if defined(ENABLE_PLUGINS) 969 #if defined(ENABLE_PLUGINS)
958 // Enables the plugin power saver feature. 970 // Enables the plugin power saver feature.
959 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; 971 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
960 #endif 972 #endif
961 973
962 // Don't dump stuff here, follow the same order as the header. 974 // Don't dump stuff here, follow the same order as the header.
963 975
964 } // namespace switches 976 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698