Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: ui/gfx/display.cc

Issue 186733009: Avoid repeated command-line checks for forced DPI scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Name tweak Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index 024b1f9aaa6c8030ab26e25bed68e841189170df..2cdc9a539af18b8d36d3312a54610ef32daba595 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -51,7 +51,9 @@ float Display::GetForcedDeviceScaleFactor() {
//static
bool Display::HasForceDeviceScaleFactor() {
- return HasForceDeviceScaleFactorImpl();
+ static const bool kHasForceDeviceScaleFactor =
+ HasForceDeviceScaleFactorImpl();
+ return kHasForceDeviceScaleFactor;
}
Display::Display()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698