diff options
Diffstat (limited to 'chromium/third_party/blink/common/switches.cc')
-rw-r--r-- | chromium/third_party/blink/common/switches.cc | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/chromium/third_party/blink/common/switches.cc b/chromium/third_party/blink/common/switches.cc index d3803236c5f..31290d0ff88 100644 --- a/chromium/third_party/blink/common/switches.cc +++ b/chromium/third_party/blink/common/switches.cc @@ -7,6 +7,78 @@ namespace blink { namespace switches { +// Allows processing of input before a frame has been committed. +// TODO(schenney): crbug.com/987626. Used by headless. Look for a way not +// involving a command line switch. +const char kAllowPreCommitInput[] = "allow-pre-commit-input"; + +// Sets the tile size used by composited layers. +const char kDefaultTileWidth[] = "default-tile-width"; +const char kDefaultTileHeight[] = "default-tile-height"; + +// 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"; + +// 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 partial raster in the renderer. Disabling this switch also disables +// the use of persistent gpu memory buffers. +const char kDisablePartialRaster[] = "disable-partial-raster"; + +// Disables RGBA_4444 textures. +const char kDisableRGBA4444Textures[] = "disable-rgba-4444-textures"; + +// Disable rasterizer that writes directly to GPU memory associated with tiles. +const char kDisableZeroCopy[] = "disable-zero-copy"; + +// Specify that all compositor resources should be backed by GPU memory buffers. +const char kEnableGpuMemoryBufferCompositorResources[] = + "enable-gpu-memory-buffer-compositor-resources"; + +// 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"; + +// Enables RGBA_4444 textures. +const char kEnableRGBA4444Textures[] = "enable-rgba-4444-textures"; + +// Enable rasterizer that writes directly to GPU memory associated with tiles. +const char kEnableZeroCopy[] = "enable-zero-copy"; + +// 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"; + +// Used to communicate managed policy for the IntensiveWakeUpThrottling feature. +// This feature is typically controlled by base::Feature (see +// renderer/platform/scheduler/common/features.*) but requires an enterprise +// policy override. This is implicitly a tri-state, and can be either unset, or +// set to "1" for force enable, or "0" for force disable. +extern const char kIntensiveWakeUpThrottlingPolicy[] = + "intensive-wake-up-throttling-policy"; +extern const char kIntensiveWakeUpThrottlingPolicy_ForceDisable[] = "0"; +extern const char kIntensiveWakeUpThrottlingPolicy_ForceEnable[] = "1"; + +// 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"; + +// Sets the min tile height for GPU raster. +const char kMinHeightForGpuRasterTile[] = "min-height-for-gpu-raster-tile"; + +// 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"; + // Used to communicate managed policy for the UserAgentClientHint feature. // This feature is typically controlled by base::Feature (see // renderer/platform/scheduler/common/features.*) but requires an enterprise @@ -14,5 +86,6 @@ namespace switches { extern const char kUserAgentClientHintDisable[] = "user-agent-client-hint-disable"; + } // namespace switches } // namespace blink |