This source file includes following definitions.
- InitDeviceScaleFactor
#include "ui/base/win/dpi_setup.h"
#include "base/command_line.h"
#include "ui/base/layout.h"
#include "ui/gfx/display.h"
#include "ui/gfx/win/dpi.h"
namespace ui {
namespace win {
void InitDeviceScaleFactor() {
float scale = 1.0;
if (CommandLine::ForCurrentProcess()->HasSwitch("silent-launch")) {
if (gfx::IsHighDPIEnabled())
scale = gfx::GetModernUIScale();
}
else {
scale = gfx::GetDPIScale();
}
gfx::InitDeviceScaleFactor(scale);
}
}
}