| Index: ui/display/display.cc
|
| diff --git a/ui/display/display.cc b/ui/display/display.cc
|
| index 25573f8f9b90e3408ab9234162a0a9b0c92aae70..4ec8ea0d063f2cdd1f66b41838e7577281b87f43 100644
|
| --- a/ui/display/display.cc
|
| +++ b/ui/display/display.cc
|
| @@ -90,6 +90,15 @@ void Display::ResetForceDeviceScaleFactorForTesting() {
|
| g_forced_device_scale_factor = -1.0;
|
| }
|
|
|
| +// static
|
| +void Display::SetForceDeviceScaleFactor(double dsf) {
|
| + // Reset any previously set values and unset the flag.
|
| + g_forced_device_scale_factor = -1.0;
|
| +
|
| + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| + switches::kForceDeviceScaleFactor, base::StringPrintf("%.2f", dsf));
|
| +}
|
| +
|
| Display::Display() : Display(kInvalidDisplayId) {}
|
|
|
| Display::Display(int64_t id) : Display(id, gfx::Rect()) {}
|
|
|