Index: cc/heads_up_display_layer.cc |
diff --git a/cc/heads_up_display_layer.cc b/cc/heads_up_display_layer.cc |
index 14c2b9d0cfd7ceeea764c1027ba6b6d7fa7661d7..5f7ba2382dd9837af4c1fccda08e7c81da01639c 100644 |
--- a/cc/heads_up_display_layer.cc |
+++ b/cc/heads_up_display_layer.cc |
@@ -35,12 +35,12 @@ void HeadsUpDisplayLayer::update(ResourceUpdateQueue&, const OcclusionTracker*, |
matrix.MakeIdentity(); |
if (debugState.showPlatformLayerTree || debugState.showHudRects()) { |
- int width = std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().width()); |
- int height = std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().height()); |
+ int width = std::min(maxTextureSize, layerTreeHost()->layoutViewportSize().width()); |
+ int height = std::min(maxTextureSize, layerTreeHost()->layoutViewportSize().height()); |
bounds = gfx::Size(width, height); |
} else { |
bounds = gfx::Size(256, 128); |
- matrix.Translate(layerTreeHost()->deviceViewportSize().width() - 256, 0); |
+ matrix.Translate(layerTreeHost()->layoutViewportSize().width() - 256, 0); |
} |
setBounds(bounds); |