forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompositor_switches.cc
38 lines (23 loc) · 1.07 KB
/
compositor_switches.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/compositor/compositor_switches.h"
#include "base/command_line.h"
namespace switches {
// Forces tests to produce pixel output when they normally wouldn't.
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 switches
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);
}
} // namespace ui