chromium/cc/base/switches.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/base/switches.h"

#include "base/command_line.h"

namespace cc {
namespace switches {

const char kDisableThreadedAnimation[] =;

// Disables layer-edge anti-aliasing in the compositor.
const char kDisableCompositedAntialiasing[] =;

// Disables sending the next BeginMainFrame before the previous commit
// activates. Overrides the kEnableMainFrameBeforeActivation flag.
const char kDisableMainFrameBeforeActivation[] =;

// Enables sending the next BeginMainFrame before the previous commit activates.
const char kEnableMainFrameBeforeActivation[] =;

// Disabled defering all image decodes to the image decode service, ignoring
// DecodingMode preferences specified on PaintImage.
const char kDisableCheckerImaging[] =;

// Percentage of the browser controls need to be hidden before they will auto
// hide.
const char kBrowserControlsHideThreshold[] =;

// Percentage of the browser controls need to be shown before they will auto
// show.
const char kBrowserControlsShowThreshold[] =;

// Re-rasters everything multiple times to simulate a much slower machine.
// Give a scale factor to cause raster to take that many times longer to
// complete, such as --slow-down-raster-scale-factor=25.
const char kSlowDownRasterScaleFactor[] =;

// Checks damage early and aborts the frame if no damage, so that clients like
// Android WebView don't invalidate unnecessarily.
const char kCheckDamageEarly[] =;

// Enables the GPU benchmarking extension
const char kEnableGpuBenchmarking[] =;

// Disables LayerTreeHost::OnMemoryPressure
const char kDisableLayerTreeHostMemoryPressure[] =;

// Controls the number of threads to use for raster tasks.
const char kNumRasterThreads[] =;

// Renders a border around compositor layers to help debug and study
// layer compositing.
const char kShowCompositedLayerBorders[] =;
const char kUIShowCompositedLayerBorders[] =;
// Parameters for kUIShowCompositedLayerBorders.
const char kCompositedRenderPassBorders[] =;
const char kCompositedSurfaceBorders[] =;
const char kCompositedLayerBorders[] =;

#if DCHECK_IS_ON()
// Checks and logs double background blur as an error if any.
const char kLogOnUIDoubleBackgroundBlur[] =;
#endif

// Draws a heads-up-display showing Frames Per Second as well as GPU memory
// usage. If you also use --enable-logging=stderr --vmodule="head*=1" then FPS
// will also be output to the console log.
const char kShowFPSCounter[] =;
const char kUIShowFPSCounter[] =;

// Renders a border that represents the bounding box for the layer's animation.
const char kShowLayerAnimationBounds[] =;
const char kUIShowLayerAnimationBounds[] =;

// Show rects in the HUD around layers whose properties have changed.
const char kShowPropertyChangedRects[] =;
const char kUIShowPropertyChangedRects[] =;

// Show rects in the HUD around damage as it is recorded into each render
// surface.
const char kShowSurfaceDamageRects[] =;
const char kUIShowSurfaceDamageRects[] =;

// Show rects in the HUD around the screen-space transformed bounds of every
// layer.
const char kShowScreenSpaceRects[] =;
const char kUIShowScreenSpaceRects[] =;

// Highlights layers that can't use lcd text. Layers containing no text won't
// be highlighted. See DebugColors::NonLCDTextHighlightColor() for the colors.
const char kHighlightNonLCDTextLayers[] =;

// Enables the resume method on animated images.
const char kAnimatedImageResume[] =;

// Allows scaling clipped images in GpuImageDecodeCache. Note that this may
// cause color-bleeding.
// TODO(crbug.com/40160880): Remove this workaround flag once the underlying
// cache problems are solved.
const char kEnableClippedImageScaling[] =;

// Prevents the layer tree unit tests from timing out.
const char kCCLayerTreeTestNoTimeout[] =;

// Increases timeout for memory checkers.
const char kCCLayerTreeTestLongTimeout[] =;

// Controls the duration of the scroll animation curve.
const char kCCScrollAnimationDurationForTesting[] =;

}  // namespace switches
}  // namespace cc