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

Unified Diff: ui/aura/test/test_screen.cc

Issue 1302233006: aura: Stop converting Rect to RectF implicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-aura: . Created 5 years, 4 months 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 | « chrome/browser/ui/views/tabs/tab_strip_unittest.cc ('k') | ui/base/touch/selection_bound.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_screen.cc
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc
index f27154e793c0175416095f044fcab4d54e9fed8f..cdeb093eda082e57cb35f87b2e1679741bbd3709 100644
--- a/ui/aura/test/test_screen.cc
+++ b/ui/aura/test/test_screen.cc
@@ -75,7 +75,7 @@ void TestScreen::SetUIScale(float ui_scale) {
ui_scale_ = ui_scale;
gfx::Rect bounds_in_pixel(display_.GetSizeInPixel());
gfx::Rect new_bounds = gfx::ToNearestRect(
- gfx::ScaleRect(bounds_in_pixel, 1.0f / ui_scale));
+ gfx::ScaleRect(gfx::RectF(bounds_in_pixel), 1.0f / ui_scale));
display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds);
host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform());
}
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip_unittest.cc ('k') | ui/base/touch/selection_bound.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698