Index: ui/gfx/screen_android.cc |
diff --git a/ui/gfx/screen_android.cc b/ui/gfx/screen_android.cc |
index 9114b8554537519fb2eec3966cc4c12710b308ab..5ddaa98242d7b5fb3b639aeeba38bb5416626770 100644 |
--- a/ui/gfx/screen_android.cc |
+++ b/ui/gfx/screen_android.cc |
@@ -34,9 +34,12 @@ class ScreenAndroid : public Screen { |
gfx::DeviceDisplayInfo device_info; |
const float device_scale_factor = device_info.GetDIPScale(); |
const gfx::Rect bounds_in_pixels = |
- gfx::Rect( |
- device_info.GetDisplayWidth(), |
- device_info.GetDisplayHeight()); |
+ gfx::Rect(device_info.GetPhysicalDisplayWidth() |
+ ? device_info.GetPhysicalDisplayWidth() |
oshima
2014/07/09 17:44:33
It's not your fault, but the name "Physical" sound
reveman
2014/07/09 18:51:41
Done.
|
+ : device_info.GetDisplayWidth(), |
+ device_info.GetPhysicalDisplayHeight() |
+ ? device_info.GetPhysicalDisplayHeight() |
+ : device_info.GetDisplayHeight()); |
const gfx::Rect bounds_in_dip = |
gfx::Rect(gfx::ToCeiledSize(gfx::ScaleSize( |
bounds_in_pixels.size(), 1.0f / device_scale_factor))); |