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

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

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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 | « media/blink/skcanvas_video_renderer.cc ('k') | ui/base/cursor/cursor_util.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 cdeb093eda082e57cb35f87b2e1679741bbd3709..1320b1c6f182d852550cfb88002857d552779b0a 100644
--- a/ui/aura/test/test_screen.cc
+++ b/ui/aura/test/test_screen.cc
@@ -116,8 +116,8 @@ gfx::Transform TestScreen::GetUIScaleTransform() const {
void TestScreen::OnWindowBoundsChanged(
Window* window, const gfx::Rect& old_bounds, const gfx::Rect& new_bounds) {
DCHECK_EQ(host_->window(), window);
- display_.SetSize(gfx::ToFlooredSize(
- gfx::ScaleSize(new_bounds.size(), display_.device_scale_factor())));
+ display_.SetSize(gfx::ScaleToFlooredSize(new_bounds.size(),
+ display_.device_scale_factor()));
}
void TestScreen::OnWindowDestroying(Window* window) {
« no previous file with comments | « media/blink/skcanvas_video_renderer.cc ('k') | ui/base/cursor/cursor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698