This source file includes following definitions.
- IsUIImplSidePaintingEnabled
- IsUIMapImageEnabled
#include "ui/compositor/compositor_switches.h"
#include "base/command_line.h"
namespace switches {
const char kEnableHardwareOverlays[] = "enable-hardware-overlays";
const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests";
const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing";
const char kUIEnableImplSidePainting[] = "ui-enable-impl-side-painting";
const char kUIEnableMapImage[] = "ui-enable-map-image";
const char kUIShowPaintRects[] = "ui-show-paint-rects";
}
namespace ui {
bool IsUIImplSidePaintingEnabled() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
return command_line.HasSwitch(switches::kUIEnableImplSidePainting);
}
bool IsUIMapImageEnabled() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
return command_line.HasSwitch(switches::kUIEnableMapImage);
}
}