Index: content/gpu/gpu_info_collector_android.cc |
diff --git a/content/gpu/gpu_info_collector_android.cc b/content/gpu/gpu_info_collector_android.cc |
index 2d594cfcc732de4db84bf5a47b64ff809231da33..99a6696a4e198c700fd27d091e553cd54e9d58ab 100644 |
--- a/content/gpu/gpu_info_collector_android.cc |
+++ b/content/gpu/gpu_info_collector_android.cc |
@@ -11,6 +11,7 @@ |
#include "base/string_piece.h" |
#include "base/string_util.h" |
#include "base/strings/string_split.h" |
+#include "cc/switches.h" |
#include "content/public/common/content_switches.h" |
#include "ui/gfx/android/device_display_info.h" |
@@ -123,6 +124,15 @@ bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) { |
switches::kDefaultTileHeight, size.str()); |
} |
+ // Increase the resolution of low resolution tiles for devices with high |
+ // resolution displays. |
+ if (default_tile_size >= 512 && |
+ !CommandLine::ForCurrentProcess()->HasSwitch( |
+ cc::switches::kLowResolutionContentsScaleFactor)) { |
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
+ cc::switches::kLowResolutionContentsScaleFactor, "4"); |
+ } |
+ |
return true; |
} |