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

Unified Diff: content/renderer/child_frame_compositing_helper.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 | « content/common/cursors/webcursor_mac.mm ('k') | content/renderer/disambiguation_popup_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index adec05be8e643a2a0f4ccb28ddc124bda9d6ac26..4f23d6cfeb9dfacd7ec2e5ffbeabd19facf71bb7 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -161,8 +161,8 @@ void ChildFrameCompositingHelper::CheckSizeAndAdjustLayerProperties(
// The container size is in DIP, so is the layer size.
// Buffer size is in physical pixels, so we need to adjust
// it by the device scale factor.
- gfx::Size device_scale_adjusted_size = gfx::ToFlooredSize(
- gfx::ScaleSize(buffer_size_, 1.0f / device_scale_factor));
+ gfx::Size device_scale_adjusted_size =
+ gfx::ScaleToFlooredSize(buffer_size_, 1.0f / device_scale_factor);
layer->SetBounds(device_scale_adjusted_size);
}
« no previous file with comments | « content/common/cursors/webcursor_mac.mm ('k') | content/renderer/disambiguation_popup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698