|
|
没读研的火柴 · 制作vb dll的总结 - ElNinoT · 2 周前 · |
|
|
大鼻子的弓箭 · GO:交互式命令行工具 survey开发者社区· 1 周前 · |
|
|
睿智的领结 · 【图】上半年宝马纯电动车型销量势头强劲 ...· 2 年前 · |
|
|
从容的青蛙 · 【行政许可事项服务指南】上市公司重大购买、出 ...· 2 年前 · |
|
|
机灵的皮带 · 《古剑奇谭3》图文攻略——第一章:魔潮_腾讯新闻· 2 年前 · |
|
|
卖萌的自行车 · 歇斯底里下载-歇斯底里Hexa ...· 2 年前 · |
|
|
体贴的风衣 · 23 你怂了? - 小驸马今天也想反攻 - ...· 2 年前 · |
在json文件中放着那个版本的参数:
E:\dev\chromium96\src\third_party\blink\renderer\platform\runtime_enabled_features.json5
在线及时更新的开关参数 Last automated update occurred on 2020-08-12 .
out\Default\chrome1.exe --enable-skia-benchmarking --enable-gpu-benchmarking --no-sandbox --process-per-site --remote-debugging-port=9222 --enable-logging --disable-gpu-rasterization --disable-gpu rem --ui-show-composited-layer-borders --ui-show-layer-animation-bounds --ui-show-paint-rects --ui-show-screenspace-rects rem http://localhost:8080/a.html rem --remote-debugging-port=9222 rem --enable-logging --v=1 --disable-gpu-vsync --vmodule=layer_tree_host=3 --ui-show-composited-layer-borders rem --vmodule=metrics=2,image_animation_controller=2,layer_tree_host_impl=2 --v=0 --trace-startup=cc rem --show-composited-layer-borders --show-screenspace-rects
--disable-gpu-rasterization --disable-gpu
--user-data-dir=UserDataDir
View Code
源码存放:
chrome / common / chrome_switches.cc
base/base_switches.h
// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include " base/base_switches.h " #include " build/build_config.h " namespace switches { // Delays execution of TaskPriority::BEST_EFFORT tasks until shutdown. const char kDisableBestEffortTasks[] = " disable-best-effort-tasks " ; // Disables the crash reporting. const char kDisableBreakpad[] = " disable-breakpad " ; // Comma-separated list of feature names to disable. See also kEnableFeatures. const char kDisableFeatures[] = " disable-features " ; // Force disabling of low-end device mode when set. const char kDisableLowEndDeviceMode[] = " disable-low-end-device-mode " ; // Indicates that crash reporting should be enabled. On platforms where helper // processes cannot access to files needed to make this decision, this flag is // generated internally. const char kEnableCrashReporter[] = " enable-crash-reporter " ; // Comma-separated list of feature names to enable. See also kDisableFeatures. const char kEnableFeatures[] = " enable-features " ; // Force low-end device mode when set. const char kEnableLowEndDeviceMode[] = " enable-low-end-device-mode " ; // This option can be used to force field trials when testing changes locally. // The argument is a list of name and value pairs, separated by slashes. If a // trial name is prefixed with an asterisk, that trial will start activated. // For example, the following argument defines two trials, with the second one // activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/" This option can // also be used by the browser process to send the list of trials to a // non-browser process, using the same format. See // FieldTrialList::CreateTrialsFromString() in field_trial.h for details. const char kForceFieldTrials[] = " force-fieldtrials " ; // Generates full memory crash dump. const char kFullMemoryCrashReport[] = " full-memory-crash-report " ; // Logs information about all tasks posted with TaskPriority::BEST_EFFORT. Use // this to diagnose issues that are thought to be caused by // TaskPriority::BEST_EFFORT execution fences. Note: Tasks posted to a // non-BEST_EFFORT UpdateableSequencedTaskRunner whose priority is later lowered // to BEST_EFFORT are not logged. const char kLogBestEffortTasks[] = " log-best-effort-tasks " ; // Suppresses all error dialogs when present. const char kNoErrorDialogs[] = " noerrdialogs " ; // Starts the sampling based profiler for the browser process at startup. This // will only work if chrome has been built with the gn arg enable_profiling = // true. The output will go to the value of kProfilingFile. const char kProfilingAtStart[] = " profiling-at-start " ; // Specifies a location for profiling output. This will only work if chrome has // been built with the gyp variable profiling=1 or gn arg enable_profiling=true. // {pid} if present will be replaced by the pid of the process. // {count} if present will be incremented each time a profile is generated // for this process. // The default is chrome-profile-{pid} for the browser and test-profile-{pid} // for tests. const char kProfilingFile[] = " profiling-file " ; // Controls whether profile data is periodically flushed to a file. Normally // the data gets written on exit but cases exist where chromium doesn't exit // cleanly (especially when using single-process). A time in seconds can be // specified. const char kProfilingFlush[] = " profiling-flush " ; // When running certain tests that spawn child processes, this switch indicates // to the test framework that the current process is a child process. const char kTestChildProcess[] = " test-child-process " ; // When running certain tests that spawn child processes, this switch indicates // to the test framework that the current process should not initialize ICU to // avoid creating any scoped handles too early in startup. const char kTestDoNotInitializeIcu[] = " test-do-not-initialize-icu " ; // Sends trace events from these categories to a file. // --trace-to-file on its own sends to default categories. const char kTraceToFile[] = " trace-to-file " ; // Specifies the file name for --trace-to-file. If unspecified, it will // go to a default file name. const char kTraceToFileName[] = " trace-to-file-name " ; // Gives the default maximal active V-logging level; 0 is the default. // Normally positive values are used for V-logging levels. const char kV[] = " v " ; // Gives the per-module maximal V-logging levels to override the value // given by --v. E.g. "my_module=2,foo*=3" would change the logging // level for all code in source files "my_module.*" and "foo*.*" // ("-inl" suffixes are also disregarded for this matching). // Any pattern containing a forward or backward slash will be tested // against the whole pathname and not just the module. E.g., // "*/foo/bar/*=2" would change the logging level for all code in // source files under a "foo/bar" directory. const char kVModule[] = " vmodule " ; // Will wait for 60 seconds for a debugger to come to attach to the process. const char kWaitForDebugger[] = " wait-for-debugger " ; #if defined(OS_WIN) // Disable high-resolution timer on Windows. const char kDisableHighResTimer[] = " disable-highres-timer " ; // Disables the USB keyboard detection for blocking the OSK on Win8+. const char kDisableUsbKeyboardDetect[] = " disable-usb-keyboard-detect " ; #endif #if defined(OS_LINUX) && !defined(OS_CHROMEOS) // The /dev/shm partition is too small in certain VM environments, causing // Chrome to fail or crash (see http://crbug.com/715363 ). Use this flag to // work-around this issue (a temporary directory will always be used to create // anonymous shared memory files). const char kDisableDevShmUsage[] = " disable-dev-shm-usage " ; #endif #if defined(OS_POSIX) // Used for turning on Breakpad crash reporting in a debug environment where // crash reporting is typically compiled but disabled. const char kEnableCrashReporterForTesting[] = " enable-crash-reporter-for-testing " ; #endif #if defined(OS_ANDROID) // Enables the reached code profiler that samples all threads in all processes // to determine which functions are almost never executed. const char kEnableReachedCodeProfiler[] = " enable-reached-code-profiler " ; #endif #if defined(OS_LINUX) // Controls whether or not retired instruction counts are surfaced for threads // in trace events on Linux. // This flag requires the BPF sandbox to be disabled. const char kEnableThreadInstructionCount[] = " enable-thread-instruction-count " ; #endif } // namespace switches View Code\content\public\common\content_switches.cc
// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include " content/public/common/content_switches.h " #include " build/build_config.h " #include " media/media_buildflags.h " namespace switches { // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to // have an effect. 0 disables MSAA. const char kAcceleratedCanvas2dMSAASampleCount[] = " canvas-msaa-sample-count " ; // Allows processing of input before a frame has been committed. // TODO(schenney): Remove when crbug.com/987626 is fixed. const char kAllowPreCommitInput[] = " allow-pre-commit-input " ; // By default, file: // URIs cannot read other file: // URIs. This is an // override for developers who need the old behavior for testing. const char kAllowFileAccessFromFiles[] = " allow-file-access-from-files " ; // Enables TLS/SSL errors on localhost to be ignored (no interstitial, // no blocking of requests). const char kAllowInsecureLocalhost[] = " allow-insecure-localhost " ; // Allows loopback interface to be added in network list for peer connection. const char kAllowLoopbackInPeerConnection[] = " allow-loopback-in-peer-connection " ; // Allow a page to show popups during its unloading. // TODO( https://crbug.com/937569 ): Remove this in Chrome 82. const char kAllowPopupsDuringPageUnload[] = " allow-popups-during-page-unload " ; // Allow a page to send synchronus XHR during its unloading. // TODO( https://crbug.com/1003101 ): Remove this in Chrome 82. const char kAllowSyncXHRInPageDismissal[] = " allow-sync-xhr-in-page-dimissal " ; // Uses the android SkFontManager on linux. The specified directory should // include the configuration xml file with the name "fonts.xml". // This is used in blimp to emulate android fonts on linux. const char kAndroidFontsPath[] = " android-fonts-path " ; // Set blink settings. Format is <name>[=<value],<name>[=<value>],... // The names are declared in Settings.json5. For boolean type, use "true", // "false", or omit '=<value>' part to set to true. For enum type, use the int // value of the enum value. Applied after other command line flags and prefs. const char kBlinkSettings[] = " blink-settings " ; // Causes the browser process to crash on startup. const char kBrowserCrashTest[] = " crash-test " ; // Causes the browser process to display a dialog on launch. const char kBrowserStartupDialog[] = " browser-startup-dialog " ; // Path to the exe to run for the renderer and plugin subprocesses. const char kBrowserSubprocessPath[] = " browser-subprocess-path " ; // Tells whether the code is running browser tests (this changes the startup URL // used by the content shell and also disables features that can make tests // flaky [like monitoring of memory pressure]). const char kBrowserTest[] = " browser-test " ; // Sets the tile size used by composited layers. const char kDefaultTileWidth[] = " default-tile-width " ; const char kDefaultTileHeight[] = " default-tile-height " ; // Disable antialiasing on 2d canvas. const char kDisable2dCanvasAntialiasing[] = " disable-canvas-aa " ; // Disables Canvas2D rendering into a scanout buffer for overlay support. const char kDisable2dCanvasImageChromium[] = " disable-2d-canvas-image-chromium " ; // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. // This is controlled by policy and is kept separate from the other // enable/disable switches to avoid accidentally regressing the policy // support for controlling access to these APIs. const char kDisable3DAPIs[] = " disable-3d-apis " ; // Disable gpu-accelerated 2d canvas. const char kDisableAccelerated2dCanvas[] = " disable-accelerated-2d-canvas " ; // Disables hardware acceleration of video decode, where available. const char kDisableAcceleratedVideoDecode[] = " disable-accelerated-video-decode " ; // Disables hardware acceleration of video encode, where available. const char kDisableAcceleratedVideoEncode[] = " disable-accelerated-video-encode " ; // Disable limits on the number of backing stores. Can prevent blinking for // users with many windows/tabs and lots of memory. const char kDisableBackingStoreLimit[] = " disable-backing-store-limit " ; // Disable backgrounding renders for occluded windows. Done for tests to avoid // nondeterministic behavior. const char kDisableBackgroundingOccludedWindowsForTesting[] = " disable-backgrounding-occluded-windows " ; // Disable task throttling of timer tasks from background pages. const char kDisableBackgroundTimerThrottling[] = " disable-background-timer-throttling " ; // Disable one or more Blink runtime-enabled features. // Use names from runtime_enabled_features.json5, separated by commas. // Applied after kEnableBlinkFeatures, and after other flags that change these // features. const char kDisableBlinkFeatures[] = " disable-blink-features " ; // Enable Web Bluetooth Scanning // This switch enables Web Bluetooth Scanning without any // permission prompt for testing. const char kEnableWebBluetoothScanning[] = " enable-web-bluetooth-scanning " ; // Disables HTML5 DB support. const char kDisableDatabases[] = " disable-databases " ; // Disable the per-domain blocking for 3D APIs after GPU reset. // This switch is intended only for tests. const char kDisableDomainBlockingFor3DAPIs[] = " disable-domain-blocking-for-3d-apis " ; // Disable all versions of WebGL. const char kDisableWebGL[] = " disable-webgl " ; // Disable WebGL2. const char kDisableWebGL2[] = " disable-webgl2 " ; // Disable FileSystem API. const char kDisableFileSystem[] = " disable-file-system " ; // Disable 3D inside of flapper. const char kDisableFlash3d[] = " disable-flash-3d " ; // Disable Stage3D inside of flapper. const char kDisableFlashStage3d[] = " disable-flash-stage3d " ; // Disable user gesture requirement for presentation. const char kDisableGestureRequirementForPresentation[] = " disable-gesture-requirement-for-presentation " ; // Disables GPU hardware acceleration. If software renderer is not in place, // then the GPU process won't launch. const char kDisableGpu[] = " disable-gpu " ; // Prevent the compositor from using its GPU implementation. const char kDisableGpuCompositing[] = " disable-gpu-compositing " ; // Disable proactive early init of GPU process. const char kDisableGpuEarlyInit[] = " disable-gpu-early-init " ; // Do not force that all compositor resources be backed by GPU memory buffers. const char kDisableGpuMemoryBufferCompositorResources[] = " disable-gpu-memory-buffer-compositor-resources " ; // Disable GpuMemoryBuffer backed VideoFrames. const char kDisableGpuMemoryBufferVideoFrames[] = " disable-gpu-memory-buffer-video-frames " ; // For tests, to disable the limit on the number of times the GPU process may be // restarted. const char kDisableGpuProcessCrashLimit[] = " disable-gpu-process-crash-limit " ; // For tests, to disable falling back to software compositing if the GPU Process // has crashed, and reached the GPU Process crash limit. const char kDisableSoftwareCompositingFallback[] = " disable-software-compositing-fallback " ; // When using CPU rasterizing disable low resolution tiling. This uses // less power, particularly during animations, but more white may be seen // during fast scrolling especially on slower devices. const char kDisableLowResTiling[] = " disable-low-res-tiling " ; // Disable the thread that crashes the GPU process if it stops responding to // messages. const char kDisableGpuWatchdog[] = " disable-gpu-watchdog " ; // Disallow image animations to be reset to the beginning to avoid skipping // many frames. Only effective if compositor image animations are enabled. const char kDisableImageAnimationResync[] = " disable-image-animation-resync " ; // Disables the IPC flooding protection. // It is activated by default. Some javascript functions can be used to flood // the browser process with IPC. This protection limits the rate at which they // can be used. const char kDisableIpcFloodingProtection[] = " disable-ipc-flooding-protection " ; // Suppresses hang monitor dialogs in renderer processes. This may allow slow // unload handlers on a page to prevent the tab from closing, but the Task // Manager can be used to terminate the offending process in this case. const char kDisableHangMonitor[] = " disable-hang-monitor " ; // Disable the RenderThread's HistogramCustomizer. const char kDisableHistogramCustomizer[] = " disable-histogram-customizer " ; // Don't kill a child process when it sends a bad IPC message. Apart // from testing, it is a bad idea from a security perspective to enable // this switch. const char kDisableKillAfterBadIPC[] = " disable-kill-after-bad-ipc " ; // Disables LCD text. const char kDisableLCDText[] = " disable-lcd-text " ; // Disable LocalStorage. const char kDisableLocalStorage[] = " disable-local-storage " ; // Force logging to be disabled. Logging is enabled by default in debug // builds. const char kDisableLogging[] = " disable-logging " ; // Disables using CODECAPI_AVLowLatencyMode when creating DXVA decoders. const char kDisableLowLatencyDxva[] = " disable-low-latency-dxva " ; // Disables clearing the rendering output of a renderer when it didn't commit // new output for a while after a top-frame navigation. const char kDisableNewContentRenderingTimeout[] = " disable-new-content-rendering-timeout " ; // Disables the Web Notification and the Push APIs. const char kDisableNotifications[] = " disable-notifications " ; // Disable partial raster in the renderer. Disabling this switch also disables // the use of persistent gpu memory buffers. const char kDisablePartialRaster[] = " disable-partial-raster " ; // Disable Pepper3D. const char kDisablePepper3d[] = " disable-pepper-3d " ; // Disables the Permissions API. const char kDisablePermissionsAPI[] = " disable-permissions-api " ; // Disable Image Chromium for Pepper 3d. const char kDisablePepper3DImageChromium[] = " disable-pepper-3d-image-chromium " ; // Disables compositor-accelerated touch-screen pinch gestures. const char kDisablePinch[] = " disable-pinch " ; // Disable the creation of compositing layers when it would prevent LCD text. const char kDisablePreferCompositingToLCDText[] = " disable-prefer-compositing-to-lcd-text " ; // Disables the Presentation API. const char kDisablePresentationAPI[] = " disable-presentation-api " ; // Disables throttling of history.pushState/replaceState calls. const char kDisablePushStateThrottle[] = " disable-pushstate-throttle " ; // Disables RGBA_4444 textures. const char kDisableRGBA4444Textures[] = " disable-rgba-4444-textures " ; // Taints all <canvas> elements, regardless of origin. const char kDisableReadingFromCanvas[] = " disable-reading-from-canvas " ; // Disables remote web font support. SVG font should always work whether this // option is specified or not. const char kDisableRemoteFonts[] = " disable-remote-fonts " ; // Disables the RemotePlayback API. const char kDisableRemotePlaybackAPI[] = " disable-remote-playback-api " ; // Turns off the accessibility in the renderer. const char kDisableRendererAccessibility[] = " disable-renderer-accessibility " ; // Prevent renderer process backgrounding when set. const char kDisableRendererBackgrounding[] = " disable-renderer-backgrounding " ; // Whether the ResourceScheduler is disabled. Note this is only useful for C++ // Headless embedders who need to implement their own resource scheduling. const char kDisableResourceScheduler[] = " disable-resource-scheduler " ; // Disable shared workers. const char kDisableSharedWorkers[] = " disable-shared-workers " ; // Do not use runtime-detected high-end CPU optimizations in Skia. This is // useful for forcing a baseline code path for e.g. web tests. const char kDisableSkiaRuntimeOpts[] = " disable-skia-runtime-opts " ; // Disable smooth scrolling for testing. const char kDisableSmoothScrolling[] = " disable-smooth-scrolling " ; // Disables the use of a 3D software rasterizer. const char kDisableSoftwareRasterizer[] = " disable-software-rasterizer " ; // Disables the Web Speech API (both speech recognition and synthesis). const char kDisableSpeechAPI[] = " disable-speech-api " ; // Disables the speech synthesis part of Web Speech API. const char kDisableSpeechSynthesisAPI[] = " disable-speech-synthesis-api " ; // Disables adding the test certs in the network process. const char kDisableTestCerts[] = " disable-test-root-certs " ; // Disable multithreaded GPU compositing of web content. const char kDisableThreadedCompositing[] = " disable-threaded-compositing " ; // Disable multithreaded, compositor scrolling of web content. const char kDisableThreadedScrolling[] = " disable-threaded-scrolling " ; // Disable V8 idle tasks. const char kDisableV8IdleTasks[] = " disable-v8-idle-tasks " ; // Disables WebGL rendering into a scanout buffer for overlay support. const char kDisableWebGLImageChromium[] = " disable-webgl-image-chromium " ; // Don't enforce the same-origin policy. (Used by people testing their sites.) const char kDisableWebSecurity[] = " disable-web-security " ; // Disable rasterizer that writes directly to GPU memory associated with tiles. const char kDisableZeroCopy[] = " disable-zero-copy " ; // Disable the video decoder from drawing directly to a texture. const char kDisableZeroCopyDxgiVideo[] = " disable-zero-copy-dxgi-video " ; // Specifies if the |DOMAutomationController| needs to be bound in the // renderer. This binding happens on per-frame basis and hence can potentially // be a performance bottleneck. One should only enable it when automating dom // based tests. const char kDomAutomationController[] = " dom-automation " ; // Disable antialiasing on 2d canvas clips const char kDisable2dCanvasClipAntialiasing[] = " disable-2d-canvas-clip-aa " ; // Disable YUV image decoding for those formats and cases where it's supported. // Has no effect unless GPU rasterization is enabled. const char kDisableYUVImageDecoding[] = " disable-yuv-image-decoding " ; // Logs Runtime Call Stats for Blink. --single-process also needs to be // used along with this for the stats to be logged. const char kDumpBlinkRuntimeCallStats[] = " dump-blink-runtime-call-stats " ; // Enables LCD text. const char kEnableLCDText[] = " enable-lcd-text " ; // Enable the creation of compositing layers when it would prevent LCD text. const char kEnablePreferCompositingToLCDText[] = " enable-prefer-compositing-to-lcd-text " ; // Enable one or more Blink runtime-enabled features. // Use names from runtime_enabled_features.json5, separated by commas. // Applied before kDisableBlinkFeatures, and after other flags that change these // features. const char kEnableBlinkFeatures[] = " enable-blink-features " ; // Enables Canvas 2D overlays for Windows. const char kEnableCanvas2dSwapChain[] = " enable-canvas2d-swap-chain " ; // Enable native caret browsing, in which a moveable cursor is placed on a web // page, allowing a user to select and navigate through non-editable text using // just a keyboard. See https://crbug.com/977390 for links to i2i. const char kEnableCaretBrowsing[] = " enable-caret-browsing " ; // Enables experimental WebAssembly features. const char kEnableExperimentalWebAssemblyFeatures[] = " enable-experimental-webassembly-features " ; // Enables Web Platform features that are in development. const char kEnableExperimentalWebPlatformFeatures[] = " enable-experimental-web-platform-features " ; // Disables all RuntimeEnabledFeatures that can be enabled via OriginTrials. const char kDisableOriginTrialControlledBlinkFeatures[] = " disable-origin-trial-controlled-blink-features " ; // Specify that all compositor resources should be backed by GPU memory buffers. const char kEnableGpuMemoryBufferCompositorResources[] = " enable-gpu-memory-buffer-compositor-resources " ; // Enable GpuMemoryBuffer backed VideoFrames. const char kEnableGpuMemoryBufferVideoFrames[] = " enable-gpu-memory-buffer-video-frames " ; // When using CPU rasterizing generate low resolution tiling. Low res // tiles may be displayed during fast scrolls especially on slower devices. const char kEnableLowResTiling[] = " enable-low-res-tiling " ; // Force logging to be enabled. Logging is disabled by default in release // builds. const char kEnableLogging[] = " enable-logging " ; // Enables the type, downlinkMax attributes of the NetInfo API. Also, enables // triggering of change attribute of the NetInfo API when there is a change in // the connection type. const char kEnableNetworkInformationDownlinkMax[] = " enable-network-information-downlink-max " ; // Disables the video decoder from drawing to an NV12 textures instead of ARGB. const char kDisableNv12DxgiVideo[] = " disable-nv12-dxgi-video " ; // Enables testing features of the Plugin Placeholder. For internal use only. const char kEnablePluginPlaceholderTesting[] = " enable-plugin-placeholder-testing " ; // Make the values returned to window.performance.memory more granular and more // up to date in shared worker. Without this flag, the memory information is // still available, but it is bucketized and updated less frequently. This flag // also applys to workers. const char kEnablePreciseMemoryInfo[] = " enable-precise-memory-info " ; // Enables PrintBrowser mode, in which everything renders as though printed. const char kEnablePrintBrowser[] = " enable-print-browser " ; // Enables RGBA_4444 textures. const char kEnableRGBA4444Textures[] = " enable-rgba-4444-textures " ; // Set options to cache V8 data. (off, preparse data, or code) const char kV8CacheOptions[] = " v8-cache-options " ; // If true the ServiceProcessLauncher is used to launch services. This allows // for service binaries to be loaded rather than using the utility process. This // is only useful for tests. const char kEnableServiceBinaryLauncher[] = " enable-service-binary-launcher " ; // Enables the Skia benchmarking extension const char kEnableSkiaBenchmarking[] = " enable-skia-benchmarking " ; // On platforms that support it, enables smooth scroll animation. const char kEnableSmoothScrolling[] = " enable-smooth-scrolling " ; // Enable spatial navigation const char kEnableSpatialNavigation[] = " enable-spatial-navigation " ; // Blocks all insecure requests from secure contexts, and prevents the user // from overriding that decision. const char kEnableStrictMixedContentChecking[] = " enable-strict-mixed-content-checking " ; // Blocks insecure usage of a number of powerful features (device orientation, // for example) that we haven't yet deprecated for the web at large. const char kEnableStrictPowerfulFeatureRestrictions[] = " enable-strict-powerful-feature-restrictions " ; // Feature flag to enable HTTPS subresource internal redirects to compressed // versions. const char kEnableSubresourceRedirect[] = " enable-subresource-redirect " ; // Enabled threaded compositing for web tests. const char kEnableThreadedCompositing[] = " enable-threaded-compositing " ; // Enable tracing during the execution of browser tests. const char kEnableTracing[] = " enable-tracing " ; // The filename to write the output of the test tracing to. const char kEnableTracingOutput[] = " enable-tracing-output " ; // Enable screen capturing support for MediaStream API. const char kEnableUserMediaScreenCapturing[] = " enable-usermedia-screen-capturing " ; // Enable the mode that uses zooming to implment device scale factor behavior. const char kEnableUseZoomForDSF[] = " enable-use-zoom-for-dsf " ; // Enables the use of the @viewport CSS rule, which allows // pages to control aspects of their own layout. This also turns on touch-screen // pinch gestures. const char kEnableViewport[] = " enable-viewport " ; // Enable the Vtune profiler support. const char kEnableVtune[] = " enable-vtune-support " ; // Enable the Web Authentication Testing API. // https://w3c.github.io/webauthn const char kEnableWebAuthTestingAPI[] = " enable-web-authentication-testing-api " ; // Enable WebGL2 Compute context. const char kEnableWebGL2ComputeContext[] = " enable-webgl2-compute-context " ; // Enables WebGL extensions not yet approved by the community. const char kEnableWebGLDraftExtensions[] = " enable-webgl-draft-extensions " ; // Enables WebGL rendering into a scanout buffer for overlay support. const char kEnableWebGLImageChromium[] = " enable-webgl-image-chromium " ; // Enables interaction with virtual reality devices. const char kEnableWebVR[] = " enable-webvr " ; // Enable rasterizer that writes directly to GPU memory associated with tiles. const char kEnableZeroCopy[] = " enable-zero-copy " ; // Handle to the shared memory segment containing field trial state that is to // be shared between processes. The argument to this switch is the handle id // (pointer on Windows) as a string, followed by a comma, then the size of the // shared memory segment as a string. const char kFieldTrialHandle[] = " field-trial-handle " ; // Define an alias root directory which is replaced with the replacement string // in file URLs. The format is "/alias=/replacement", which would turn // file: // /alias/some/path.html into file: // /replacement/some/path.html. const char kFileUrlPathAlias[] = " file-url-path-alias " ; // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU // accelerated compositing + impl-side painting. Overrides the // kEnableGpuRasterization flag. const char kForceGpuRasterization[] = " force-gpu-rasterization " ; // Disables OOP rasterization. Takes precedence over the enable flag. const char kDisableOopRasterization[] = " disable-oop-rasterization " ; // Turns on out of process raster for the renderer whenever gpu raster // would have been used. Enables the chromium_raster_transport extension. const char kEnableOopRasterization[] = " enable-oop-rasterization " ; // Turns on skia deferred display list for out of process raster. const char kEnableOopRasterizationDDL[] = " enable-oop-rasterization-ddl " ; // Enables WebGL overlays for Windows. const char kEnableWebGLSwapChain[] = " enable-webgl-swap-chain " ; // The number of multisample antialiasing samples for GPU rasterization. // Requires MSAA support on GPU to have an effect. 0 disables MSAA. const char kGpuRasterizationMSAASampleCount[] = " gpu-rasterization-msaa-sample-count " ; // Forces use of hardware overlay for fullscreen video playback. Useful for // testing the Android overlay fullscreen functionality on other platforms. const char kForceOverlayFullscreenVideo[] = " force-overlay-fullscreen-video " ; // This forces pages to be loaded as presentation receivers. Useful for testing // behavior specific to presentation receivers. // Spec: https://www.w3.org/TR/presentation-api/ #interface-presentationreceiver const char kForcePresentationReceiverForTesting[] = " force-presentation-receiver-for-testing " ; // Force renderer accessibility to be on instead of enabling it on demand when // a screen reader is detected. The disable-renderer-accessibility switch // overrides this if present. const char kForceRendererAccessibility[] = " force-renderer-accessibility " ; // For development / testing only. When running content_browsertests, // saves output of failing accessibility tests to their expectations files in // content/test/data/accessibility/, overwriting existing file content. const char kGenerateAccessibilityTestExpectations[] = " generate-accessibility-test-expectations " ; // Extra command line options for launching the GPU process (normally used // for debugging). Use like renderer-cmd-prefix. const char kGpuLauncher[] = " gpu-launcher " ; // Makes this process a GPU sub-process. const char kGpuProcess[] = " gpu-process " ; // Starts the GPU sandbox before creating a GL context. const char kGpuSandboxStartEarly[] = " gpu-sandbox-start-early " ; // Causes the GPU process to display a dialog on launch. const char kGpuStartupDialog[] = " gpu-startup-dialog " ; // Start the renderer with an initial virtual time override specified in // seconds since the epoch. const char kInitialVirtualTime[] = " initial-virtual-time " ; // Run the GPU process as a thread in the browser process. const char kInProcessGPU[] = " in-process-gpu " ; // Overrides the timeout, in seconds, that a child process waits for a // connection from the browser before killing itself. const char kIPCConnectionTimeout[] = " ipc-connection-timeout " ; // Require dedicated processes for a set of origins, specified as a // comma-separated list. For example: // --isolate-origins= https://www.foo.com , https://www.bar.com const char kIsolateOrigins[] = " isolate-origins " ; // Disable latest shipping ECMAScript 6 features. const char kDisableJavaScriptHarmonyShipping[] = " disable-javascript-harmony-shipping " ; // Enables experimental Harmony (ECMAScript 6) features. const char kJavaScriptHarmony[] = " javascript-harmony " ; // Specifies the flags passed to JS engine const char kJavaScriptFlags[] = " js-flags " ; // Overrides the Lite Page Subresource host. const char kLitePagesServerSubresourceHost[] = " litepage-server-subresource-host " ; // Logs GPU control list decisions when enforcing blacklist rules. const char kLogGpuControlListDecisions[] = " log-gpu-control-list-decisions " ; // Sets the minimum log level. Valid values are from 0 to 3: // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. const char kLoggingLevel[] = " log-level " ; // Overrides the default file name to use for general-purpose logging (does not // affect which events are logged). const char kLogFile[] = " log-file " ; // Resizes of the main frame are caused by changing between landscape and // portrait mode (i.e. Android) so the page should be rescaled to fit. const char kMainFrameResizesAreOrientationChanges[] = " main-frame-resizes-are-orientation-changes " ; // Allows user to override maximum number of active WebGL contexts per // renderer process. const char kMaxActiveWebGLContexts[] = " max-active-webgl-contexts " ; // Sets the maximium decoded image size limitation. const char kMaxDecodedImageSizeMb[] = " max-decoded-image-size-mb " ; // Sets the width and height above which a composited layer will get tiled. const char kMaxUntiledLayerHeight[] = " max-untiled-layer-height " ; const char kMaxUntiledLayerWidth[] = " max-untiled-layer-width " ; // Indicates the utility process should run with a message loop type of UI. const char kMessageLoopTypeUi[] = " message-loop-type-ui " ; // Set the default result for MockCertVerifier. This only works in test code. const char kMockCertVerifierDefaultResultForTesting[] = " mock-cert-verifier-default-result-for-testing " ; // Use a Mojo-based LocalStorage implementation. const char kMojoLocalStorage[] = " mojo-local-storage " ; // Sets the timeout seconds of the network-quiet timers in IdlenessDetector. // Used by embedders who want to change the timeout time in order to run web // contents on various embedded devices and changeable network bandwidths in // different regions. For example, it's useful when using FirstMeaningfulPaint // signal to dismiss a splash screen. const char kNetworkQuietTimeout[] = " network-quiet-timeout " ; // Disables the use of a zygote process for forking child processes. Instead, // child processes will be forked and exec'd directly. Note that --no-sandbox // should also be used together with this flag because the sandbox needs the // zygote to work. const char kNoZygote[] = " no-zygote " ; // Disables V8 mitigations for executing untrusted code. const char kNoV8UntrustedCodeMitigations[] = " no-v8-untrusted-code-mitigations " ; // Number of worker threads used to rasterize content. const char kNumRasterThreads[] = " num-raster-threads " ; // Override the behavior of plugin throttling for testing. // By default the throttler is only enabled for a hard-coded list of plugins. // Set the value to 'always' to always throttle every plugin instance. Set the // value to 'never' to disable throttling. const char kOverridePluginPowerSaverForTesting[] = " override-plugin-power-saver-for-testing " ; // Override the default value for the 'passive' field in javascript // addEventListener calls. Values are defined as: // 'documentonlytrue' to set the default be true only for document level nodes. // 'true' to set the default to be true on all nodes (when not specified). // 'forcealltrue' to force the value on all nodes. const char kPassiveListenersDefault[] = " passive-listeners-default " ; // Argument to the process type that indicates a PPAPI broker process type. const char kPpapiBrokerProcess[] = " ppapi-broker " ; // "Command-line" arguments for the PPAPI Flash; used for debugging options. const char kPpapiFlashArgs[] = " ppapi-flash-args " ; // Runs PPAPI (Pepper) plugins in-process. const char kPpapiInProcess[] = " ppapi-in-process " ; // Specifies a command that should be used to launch the ppapi plugin process. // Useful for running the plugin process through purify or quantify. Ex: // --ppapi-plugin-launcher="path\to\purify /Run=yes" const char kPpapiPluginLauncher[] = " ppapi-plugin-launcher " ; // Argument to the process type that indicates a PPAPI plugin process type. const char kPpapiPluginProcess[] = " ppapi " ; // Causes the PPAPI sub process to display a dialog on launch. Be sure to use // --no-sandbox as well or the sandbox won't allow the dialog to display. const char kPpapiStartupDialog[] = " ppapi-startup-dialog " ; // Enable the "Process Per Site" process model for all domains. This mode // consolidates same-site pages so that they share a single process. // More details here: // - https://www.chromium.org/developers/design-documents/process-models // - The class comment in site_instance.h, listing the supported process models. // IMPORTANT: This isn't to be confused with --site-per-process (which is about // isolation, not consolidation). You probably want the other one. const char kProcessPerSite[] = " process-per-site " ; // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own // renderer process. We default to using a renderer process for each // site instance (i.e., group of pages from the same registered domain with // script connections to each other). // TODO(creis): This flag is currently a no-op. We should refactor it to avoid // "unnecessary" process swaps for cross-site navigations but still swap when // needed for security (e.g., isolated origins). const char kProcessPerTab[] = " process-per-tab " ; // The value of this switch determines whether the process is started as a // renderer or plugin host. If it's empty, it's the browser. const char kProcessType[] = " type " ; // Uses a specified proxy server, overrides system settings. This switch only // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the // highest priority. // TODO(yzshen): Move this switch back to chrome/common/chrome_switches.{h,cc}, // once the network service is able to access the corresponding setting via the // pref service. const char kProxyServer[] = " proxy-server " ; // Enables or disables pull-to-refresh gesture in response to vertical // overscroll. // Set the value to '0' to disable the feature, set to '1' to enable it for both // touchpad and touchscreen, and set to '2' to enable it only for touchscreen. // Defaults to disabled. const char kPullToRefresh[] = " pull-to-refresh " ; // Register Pepper plugins (see pepper_plugin_list.cc for its format). const char kRegisterPepperPlugins[] = " register-pepper-plugins " ; // Enables remote debug over stdio pipes [in=3, out=4]. // Optionally, specifies the format for the protocol messages, can be either // "JSON" (the default) or "CBOR". const char kRemoteDebuggingPipe[] = " remote-debugging-pipe " ; // Enables remote debug over HTTP on the specified port. const char kRemoteDebuggingPort[] = " remote-debugging-port " ; const char kRendererClientId[] = " renderer-client-id " ; // The contents of this flag are prepended to the renderer command line. // Useful values might be "valgrind" or "xterm -e gdb --args". const char kRendererCmdPrefix[] = " renderer-cmd-prefix " ; // Causes the process to run as renderer instead of as browser. const char kRendererProcess[] = " renderer " ; // Overrides the default/calculated limit to the number of renderer processes. // Very high values for this setting can lead to high memory/resource usage // or instability. const char kRendererProcessLimit[] = " renderer-process-limit " ; // Causes the renderer process to display a dialog on launch. Passing this flag // also adds service_manager::kNoSandbox on Windows non-official builds, since // that's needed to show a dialog. const char kRendererStartupDialog[] = " renderer-startup-dialog " ; // Manual tests only run when --run-manual is specified. This allows writing // tests that don't run automatically but are still in the same test binary. // This is useful so that a team that wants to run a few tests doesn't have to // add a new binary that must be compiled on all builds. const char kRunManualTestsFlag[] = " run-manual " ; // Causes the process to run as a sandbox IPC subprocess. const char kSandboxIPCProcess[] = " sandbox-ipc " ; // Visibly render a border around layout shift rects in the web page to help // debug and study layout shifts. const char kShowLayoutShiftRegions[] = " show-layout-shift-regions " ; // Visibly render a border around paint rects in the web page to help debug // and study painting behavior. const char kShowPaintRects[] = " show-paint-rects " ; // Runs the renderer and plugins in the same process as the browser const char kSingleProcess[] = " single-process " ; // Enforces a one-site-per-process security policy: // * Each renderer process, for its whole lifetime, is dedicated to rendering // pages for just one site. // * Thus, pages from different sites are never in the same process. // * A renderer process's access rights are restricted based on its site. // * All cross-site navigations force process swaps. // * <iframe>s are rendered out-of-process whenever the src= is cross-site. // More details here: // - https://www.chromium.org/developers/design-documents/site-isolation // - https://www.chromium.org/developers/design-documents/process-models // - The class comment in site_instance.h, listing the supported process models. // IMPORTANT: this isn't to be confused with --process-per-site (which is about // process consolidation, not isolation). You probably want this one. const char kSitePerProcess[] = " site-per-process " ; // Disables site isolation. // Note that the opt-in (to site-per-process, isolate-origins, etc.) via // enterprise policy and/or cmdline takes precedence over the // kDisableSiteIsolation switch (i.e. the opt-in takes effect despite potential // presence of kDisableSiteIsolation switch). // Note that for historic reasons the name of the switch misleadingly mentions // "trials", but the switch also disables the default site isolation that ships // on desktop since M67. The name of the switch is preserved for // backcompatibility of chrome: // flags. const char kDisableSiteIsolation[] = " disable-site-isolation-trials " ; // Specifies if the browser should start in fullscreen mode, like if the user // had pressed F11 right after startup. const char kStartFullscreen[] = " start-fullscreen " ; // Specifies if the |StatsCollectionController| needs to be bound in the // renderer. This binding happens on per-frame basis and hence can potentially // be a performance bottleneck. One should only enable it when running a test // that needs to access the provided statistics. const char kStatsCollectionController[] = " enable-stats-collection-bindings " ; // Specifies the max number of bytes that should be used by the skia font cache. // If the cache needs to allocate more, skia will purge previous entries. const char kSkiaFontCacheLimitMb[] = " skia-font-cache-limit-mb " ; // Specifies the max number of bytes that should be used by the skia resource // cache. The previous entries are purged from the cache when the memory useage // exceeds this limit. const char kSkiaResourceCacheLimitMb[] = " skia-resource-cache-limit-mb " ; // Type of the current test harness ("browser" or "ui"). const char kTestType[] = " test-type " ; // Enable support for touch event feature detection. const char kTouchEventFeatureDetection[] = " touch-events " ; // The values the kTouchEventFeatureDetection switch may have, as in // --touch-events=disabled. // auto: enabled at startup when an attached touchscreen is present. const char kTouchEventFeatureDetectionAuto[] = " auto " ; // enabled: touch events always enabled. const char kTouchEventFeatureDetectionEnabled[] = " enabled " ; // disabled: touch events are disabled. const char kTouchEventFeatureDetectionDisabled[] = " disabled " ; // Controls how text selection granularity changes when touch text selection // handles are dragged. Should be "character" or "direction". If not specified, // the platform default is used. const char kTouchTextSelectionStrategy[] = " touch-selection-strategy " ; // Accepts specified file as a trustable BundledExchanges file. This flag should // be used only for testing purpose. const char kTrustableBundledExchangesFile[] = " trustable-bundled-exchanges-file " ; // Replaces the existing codecs supported in peer connection with a single fake // codec entry that create a fake video encoder and decoder. const char kUseFakeCodecForPeerConnection[] = " use-fake-codec-for-peer-connection " ; // Bypass the media stream infobar by selecting the default device for media // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. const char kUseFakeUIForMediaStream[] = " use-fake-ui-for-media-stream " ; // Texture target for CHROMIUM_image backed video frame textures. const char kVideoImageTextureTarget[] = " video-image-texture-target " ; // Set when Chromium should use a mobile user agent. const char kUseMobileUserAgent[] = " use-mobile-user-agent " ; // Use the MockCertVerifier. This only works in test code. const char kUseMockCertVerifierForTesting[] = " use-mock-cert-verifier-for-testing " ; // The contents of this flag are prepended to the utility process command line. // Useful values might be "valgrind" or "xterm -e gdb --args". const char kUtilityCmdPrefix[] = " utility-cmd-prefix " ; // Causes the process to run as a utility subprocess. const char kUtilityProcess[] = " utility " ; // Causes the utility process to display a dialog on launch. const char kUtilityStartupDialog[] = " utility-startup-dialog " ; // In debug builds, asserts that the stream of input events is valid. const char kValidateInputEventStream[] = " validate-input-event-stream " ; // Will add kWaitForDebugger to every child processes. If a value is passed, it // will be used as a filter to determine if the child process should have the // kWaitForDebugger flag passed on or not. const char kWaitForDebuggerChildren[] = " wait-for-debugger-children " ; // Set the antialiasing method used for webgl. (none, explicit, implicit, or // screenspace) const char kWebglAntialiasingMode[] = " webgl-antialiasing-mode " ; // Set a default sample count for webgl if msaa is enabled. const char kWebglMSAASampleCount[] = " webgl-msaa-sample-count " ; // Disables encryption of RTP Media for WebRTC. When Chrome embeds Content, it // ignores this switch on its stable and beta channels. const char kDisableWebRtcEncryption[] = " disable-webrtc-encryption " ; // Disables HW decode acceleration for WebRTC. const char kDisableWebRtcHWDecoding[] = " disable-webrtc-hw-decoding " ; // Disables HW encode acceleration for WebRTC. const char kDisableWebRtcHWEncoding[] = " disable-webrtc-hw-encoding " ; // Enables negotiation of GCM cipher suites from RFC 7714 for SRTP in WebRTC. // See https://tools.ietf.org/html/rfc7714 for further information. const char kEnableWebRtcSrtpAesGcm[] = " enable-webrtc-srtp-aes-gcm " ; // Enables negotiation of encrypted header extensions from RFC 6904 for SRTP // in WebRTC. // See https://tools.ietf.org/html/rfc6904 for further information. // TODO( https://crbug.com/954201 ): Remove this. const char kEnableWebRtcSrtpEncryptedHeaders[] = " enable-webrtc-srtp-encrypted-headers " ; // Enables Origin header in Stun messages for WebRTC. const char kEnableWebRtcStunOrigin[] = " enable-webrtc-stun-origin " ; // Enforce IP Permission check. TODO(guoweis): Remove this once the feature is // not under finch and becomes the default. const char kEnforceWebRtcIPPermissionCheck[] = " enforce-webrtc-ip-permission-check " ; // Override WebRTC IP handling policy to mimic the behavior when WebRTC IP // handling policy is specified in Preferences. const char kForceWebRtcIPHandlingPolicy[] = " force-webrtc-ip-handling-policy " ; // Override the maximum framerate as can be specified in calls to getUserMedia. // This flag expects a value. Example: --max-gum-fps=17.5 const char kWebRtcMaxCaptureFramerate[] = " max-gum-fps " ; // Configure the maximum CPU time percentage of a single core that can be // consumed for desktop capturing. Default is 50. Set 100 to disable the // throttling of the capture. const char kWebRtcMaxCpuConsumptionPercentage[] = " webrtc-max-cpu-consumption-percentage " ; // Renderer process parameter for WebRTC Stun probe trial to determine the // interval. Please see SetupStunProbeTrial in // chrome_browser_field_trials_desktop.cc for more detail. const char kWebRtcStunProbeTrialParameter[] = " webrtc-stun-probe-trial " ; // Enable capture and local storage of WebRTC event logs without visiting // chrome: // webrtc-internals. This is useful for automated testing. It accepts // the path to which the local logs would be stored. Disabling is not possible // without restarting the browser and relaunching without this flag. const char kWebRtcLocalEventLogging[] = " webrtc-event-logging " ; #if defined(OS_ANDROID) // Disable Media Session API const char kDisableMediaSessionAPI[] = " disable-media-session-api " ; // Disable overscroll edge effects like those found in Android views. const char kDisableOverscrollEdgeEffect[] = " disable-overscroll-edge-effect " ; // Disable the pull-to-refresh effect when vertically overscrolling content. const char kDisablePullToRefreshEffect[] = " disable-pull-to-refresh-effect " ; // Disable the locking feature of the screen orientation API. const char kDisableScreenOrientationLock[] = " disable-screen-orientation-lock " ; // Just like kDisableSiteIsolation, but doesn't show the "stability and security // will suffer" butter bar warning. const char kDisableSiteIsolationForPolicy[] = " disable-site-isolation-for-policy " ; // Disable timeouts that may cause the browser to die when running slowly. This // is useful if running with profiling (such as debug malloc). const char kDisableTimeoutsForProfiling[] = " disable-timeouts-for-profiling " ; // Enable inverting of selection handles so that they are not clipped by the // viewport boundaries. const char kEnableAdaptiveSelectionHandleOrientation[] = " enable-adaptive-selection-handle-orientation " ; // Enable drag manipulation of longpress-triggered text selections. const char kEnableLongpressDragSelection[] = " enable-longpress-drag-selection " ; // The telephony region (ISO country code) to use in phone number detection. const char kNetworkCountryIso[] = " network-country-iso " ; // Enables remote debug over HTTP on the specified socket name. const char kRemoteDebuggingSocketName[] = " remote-debugging-socket-name " ; // Block ChildProcessMain thread of the renderer's ChildProcessService until a // Java debugger is attached. const char kRendererWaitForJavaDebugger[] = " renderer-wait-for-java-debugger " ; #endif // Enable the experimental Accessibility Object Model APIs in development. const char kEnableAccessibilityObjectModel[] = " enable-accessibility-object-model " ; // Enable the aggressive flushing of DOM Storage to minimize data loss. const char kEnableAggressiveDOMStorageFlushing[] = " enable-aggressive-domstorage-flushing " ; // Enable indication that browser is controlled by automation. const char kEnableAutomation[] = " enable-automation " ; #if defined(OS_LINUX) && !defined(OS_CHROMEOS) // Allows sending text-to-speech requests to speech-dispatcher, a common // Linux speech service. Because it's buggy, the user must explicitly // enable it so that visiting a random webpage can't cause instability. const char kEnableSpeechDispatcher[] = " enable-speech-dispatcher " ; #endif #if defined(OS_CHROMEOS) // A time_t. Passed by session_manager into the Chrome user session, indicating // that if Chrome crashes before the indicated time, session_manager will // consider this to be a crash-loop situation and log the user out. Chrome // mostly just passes this to crash_reporter if it crashes. const char kCrashLoopBefore[] = " crash-loop-before " ; #endif #if defined(OS_WIN) // /prefetch:# arguments to use when launching various process types. It has // been observed that when file reads are consistent for 3 process launches with // the same /prefetch:# argument, the Windows prefetcher starts issuing reads in // batch at process launch. Because reads depend on the process type, the // prefetcher wouldn't be able to observe consistent reads if no /prefetch:# // arguments were used. Note that the browser process has no /prefetch:# // argument; as such all other processes must have one in order to avoid // polluting its profile. Note: # must always be in [1, 8]; otherwise it is // ignored by the Windows prefetcher. const char kPrefetchArgumentRenderer[] = " /prefetch:1 " ; const char kPrefetchArgumentGpu[] = " /prefetch:2 " ; const char kPrefetchArgumentPpapi[] = " /prefetch:3 " ; const char kPrefetchArgumentPpapiBroker[] = " /prefetch:4 " ; // /prefetch:5, /prefetch:6 and /prefetch:7 are reserved for content embedders // and are not to be used by content itself. // /prefetch:# argument shared by all process types that don't have their own. // It is likely that the prefetcher won't work for these process types as it // won't be able to observe consistent file reads across launches. However, // having a valid prefetch argument for these process types is required to // prevent them from interfering with the prefetch profile of the browser // process. const char kPrefetchArgumentOther[] = " /prefetch:8 " ; // Device scale factor passed to certain processes like renderers, etc. const char kDeviceScaleFactor[] = " device-scale-factor " ; // Disable the Legacy Window which corresponds to the size of the WebContents. const char kDisableLegacyIntermediateWindow[] = " disable-legacy-window " ; // Enables H264 HW decode acceleration for WebRtc on Win 7. const char kEnableWin7WebRtcHWH264Decoding[] = " enable-win7-webrtc-hw-h264-decoding " ; // DirectWrite FontCache is shared by browser to renderers using shared memory. // This switch allows us to pass the shared memory handle to the renderer. const char kFontCacheSharedHandle[] = " font-cache-shared-handle " ; // The boolean value (0/1) of FontRenderParams::antialiasing to be passed to // Ppapi processes. const char kPpapiAntialiasedTextEnabled[] = " ppapi-antialiased-text-enabled " ; // The enum value of FontRenderParams::subpixel_rendering to be passed to Ppapi // processes. const char kPpapiSubpixelRenderingSetting[] = " ppapi-subpixel-rendering-setting " ; // Causes the second GPU process used for gpu info collection to display a // dialog on launch. const char kGpu2StartupDialog[] = " gpu2-startup-dialog " ; #endif #if defined(ENABLE_IPC_FUZZER) // Dumps IPC messages sent from renderer processes to the browser process to // the given directory. Used primarily to gather samples for IPC fuzzing. const char kIpcDumpDirectory[] = " ipc-dump-directory " ; // Specifies the testcase used by the IPC fuzzer. const char kIpcFuzzerTestcase[] = " ipc-fuzzer-testcase " ; #endif // Don't dump stuff here, follow the same order as the header. } // namespace switches View Code
序号 参数 说明
1 --allow-outdated-plugins 不停用过期的插件。
2 --allow-running-insecure-content 默认情况下,https 页面不允许从 http 链接引用 javascript/css/plug-ins。添加这一参数会放行这些内容。
3 --allow-scripting-gallery 允许拓展脚本在官方应用中心生效。默认情况下,出于安全因素考虑这些脚本都会被阻止。
4 --disable-accelerated-video 停用 GPU 加速视频。
5 --disable-dart 停用 Dart。
6 --disable-desktop-notifications 禁用桌面通知,在 Windows 中桌面通知默认是启用的。
7 --disable-extensions 禁用拓展。
8 --disable-file-system 停用 FileSystem API。
9 --disable-preconnect 停用 TCP/IP 预连接。
10 --disable-remote-fonts 关闭远程字体支持。SVG 中字体不受此参数影响。
11 --disable-speech-input 停用语音输入。
12 --disable-web-security 不遵守同源策略。
13 --disk-cache-dir 将缓存设置在给定的路径。
14 --disk-cache-size 设置缓存大小上限,以字节为单位。
15 --dns-prefetch-disable 停用DNS预读。
16 --enable-print-preview 启用打印预览。
17 --extensions-update-frequency 设定拓展自动更新频率,以秒为单位。
18 --incognito 让浏览器直接以隐身模式启动。
19 --keep-alive-for-test 最后一个标签关闭后仍保持浏览器进程。(某种意义上可以提高热启动速度,不过你最好得有充足的内存)
20 --kiosk 启用kiosk模式。(一种类似于全屏的浏览模式)
21 --lang 使用指定的语言。
22 --no-displaying-insecure-content 默认情况下,https 页面允许从 http 链接引用图片/字体/框架。添加这一参数会阻止这些内容。
23 --no-first-run 跳过 Chromium 首次运行检查。
24 --no-referrers 不发送 Http-Referer 头。
25 --no-sandbox 彻底停用沙箱。
26 --no-startup-window 启动时不建立窗口。
27 --proxy-pac-url 使用给定 URL 的 pac 代理脚本。(也可以使用本地文件,如 --proxy-pac-url="file:\\\c:\proxy.pac")
28 --proxy-server 使用给定的代理服务器,这个参数只对 http 和 https 有效。(例如 --proxy-server=127.0.0.1:8087 )
29 --single-process 以单进程模式运行 Chromium。(启动时浏览器会给出不安全警告)
30 --start-maximized 启动时最大化。
31 --user-agent 使用给定的 User-Agent 字符串
\third_party\blink\renderer\platform\widget\compositing\layer_tree_settings.cc
存放一些 layertree读取的开关值。
cc\base\switches.cc
\cc\trees\layer_tree_settings.cc
\gpu\config\gpu_switches.cc
\third_party\blink\common\switches.cc
third_party\blink\public\common\switches.h
There are command line flags (or "switches") that Chromium (and Chrome) accept in order to enable particular features or modify otherwise default functionality.
Current switches may be found at http://peter.sh/examples/?/chromium-switches.html
It is important to note that some switches are intended for temporary cases and may break in the future.
Note that if you look at
chrome://flags
to see if the command line option is active, the state might not be accurately reflected. Check
chrome://version
for the complete command line used in the current instance.
--disable-gpu-vsync
chrome.exe --disable-gpu-vsync
/Applications/Chromium.app/Contents/MacOS/Chromium --remote-debugging-port=9222
# For Google Chrome you'll need to escape spaces like so:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
chromium-browser --remote-debugging-port=9222
google-chrome --foo --bar=2
V8 can take a number of flags as well, via Chrome's
js-flags
flag. For example, this traces V8 optimizations:
chrome.exe --js-flags="--trace-opt --trace-deopt --trace-bailout"
To get a listing of all possible V8 flags:
chrome.exe --js-flags="--help"
Browse the V8 wiki for more flags for V8.
Visit '
about:version
' to review the flags that are effective in the app.
If you are running on a rooted device or using a debug build of Chromium, then you can set flags like so:
out/Default/bin/chrome_public_apk argv # Show existing flags.
out/Default/bin/content_shell_apk argv --args='--foo --bar' # Set new flags
You can also install, set flags, and launch with a single command:
out/Default/bin/chrome_public_apk run --args='--foo --bar'
out/Default/bin/content_shell_apk run # Clears any existing flags
For production build on a non-rooted device, you need to enable "Enable command line on non-rooted devices" in chrome://flags, then set command line in /data/local/tmp/chrome-command-line . When doing that, mind that the first command line item should be a "_" (underscore) followed by the ones you actually need. Finally, manually restart Chrome ("Relaunch" from chrome://flags page might no be enough to trigger reading this file). See https://crbug.com/784947 .
There's an alternative method for setting flags with ContentShell that doesn't require building yourself:
adb shell am start \
-a android.intent.action.VIEW \
-n org.chromium.content_shell_apk/.ContentShellActivity \
--es activeUrl "http://chromium.org" \
--esa commandLineArgs --show-paint-rects,--show-property-changed-rects
This will launch contentshell with the supplied flags. You can apply whatever commandLineArgs you want in that syntax.
This is documented in the chromium tree .
sudo restart ui
Google Chrome浏览器可以使用很多命令行。 一些更改功能的行为,其他用于调试或试验。 该页面列出了可用的开关,包括其条件和说明。 上一次自动更新发生在2020-08-12。
|
|
没读研的火柴 · 制作vb dll的总结 - ElNinoT 2 周前 |
|
|
大鼻子的弓箭 · GO:交互式命令行工具 survey开发者社区 1 周前 |
|
|
机灵的皮带 · 《古剑奇谭3》图文攻略——第一章:魔潮_腾讯新闻 2 年前 |
|
|
体贴的风衣 · 23 你怂了? - 小驸马今天也想反攻 - 包子漫画 2 年前 |