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

Unified Diff: cc/heads_up_display_layer.cc

Issue 11415208: cc: Fix hudLayer size and paint rects scale for deviceScaleFactor != 1 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 170476 Created 8 years, 1 month 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 | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698