Index: cc/layer_tree_settings.cc |
diff --git a/cc/layer_tree_settings.cc b/cc/layer_tree_settings.cc |
index 5f7d8fee5efed64513a541713ca2a3ea2454ff05..27723fcb615d34f077133e29699900bfd89837b6 100644 |
--- a/cc/layer_tree_settings.cc |
+++ b/cc/layer_tree_settings.cc |
@@ -23,6 +23,7 @@ LayerTreeSettings::LayerTreeSettings() |
, pageScalePinchZoomEnabled(false) |
, backgroundColorInsteadOfCheckerboard(false) |
, showOverdrawInTracing(false) |
+ , canUseLCDText(true) |
, refreshRate(0) |
, maxPartialTextureUpdates(std::numeric_limits<size_t>::max()) |
, numRasterThreads(1) |
@@ -36,6 +37,12 @@ LayerTreeSettings::LayerTreeSettings() |
backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->HasSwitch(switches::kBackgroundColorInsteadOfCheckerboard); |
showOverdrawInTracing = CommandLine::ForCurrentProcess()->HasSwitch(switches::kTraceOverdraw); |
+// TODO(alokp): Remove this hard-coded setting. |
+// Platforms that need to disable LCD text must explicitly set this value. |
+#if defined(OS_ANDROID) |
+ canUseLCDText = false; |
+#endif |
+ |
initialDebugState.showPropertyChangedRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowPropertyChangedRects); |
initialDebugState.showSurfaceDamageRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowSurfaceDamageRects); |
initialDebugState.showScreenSpaceRects = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kShowScreenSpaceRects); |