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

Unified Diff: ui/gfx/switches.cc

Issue 1315633002: gfx: Converge scale precision related differences to single class. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected simple nit. Created 5 years, 4 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 | « ui/gfx/switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/switches.cc
diff --git a/ui/gfx/switches.cc b/ui/gfx/switches.cc
index 6e7147ee2fc6ff4ead0c8ca8f18679ca2f98e6fd..4e370ae2741ee2741cfcc38bc25d8c6155202499 100644
--- a/ui/gfx/switches.cc
+++ b/ui/gfx/switches.cc
@@ -9,6 +9,11 @@ namespace switches {
// Overrides the device scale factor for the browser UI and the contents.
const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
+// Enables fixed precision for scale factors, so that different scale factors
+// which are almost equal (differ by some threshold magnitude of floating point
+// epsilon) are considered as same.
+const char kEnableFixedPrecisionScale[] = "enable-fixed-precision-scale";
+
#if defined(OS_WIN)
// Disables the DirectWrite font rendering system on windows.
const char kDisableDirectWrite[] = "disable-direct-write";
« no previous file with comments | « ui/gfx/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698