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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1293083003: Make the LCD text device scale factor threshold 1.5 inclusive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 113e54e3cdcad3610b7241522a2d5d51501298b3..d324083eac0f98f1075811823d6033144f4911ee 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -361,7 +361,9 @@ static bool DeviceScaleEnsuresTextQuality(float device_scale_factor) {
// On Android, we never have subpixel antialiasing.
return true;
#else
- return device_scale_factor > 1.5f;
+ // 1.5 is a common touchscreen tablet device scale factor. For such
+ // devices main thread antialiasing is a heavy burden.
+ return device_scale_factor >= 1.5f;
#endif
}
« 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