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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2758733003: Enable --prefer-compositing-to-lcd-text on Chrome OS by default. (Closed)
Patch Set: ChromeOS -> Chrome OS Created 3 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 0c57eceedfeb4a5ff928e02c11661de31f1f4558..46b9d4e8b1af008c671e296a380b393545e7e76c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -329,8 +329,9 @@ WindowOpenDisposition RenderViewImpl::NavigationPolicyToDisposition(
// Returns true if the device scale is high enough that losing subpixel
// antialiasing won't have a noticeable effect on text quality.
static bool DeviceScaleEnsuresTextQuality(float device_scale_factor) {
-#if defined(OS_ANDROID)
- // On Android, we never have subpixel antialiasing.
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
+ // On Android, we never have subpixel antialiasing. On Chrome OS we prefer to
+ // composite all scrollers so that we get animated overlay scrollbars.
return true;
#else
// 1.5 is a common touchscreen tablet device scale factor. For such
« 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