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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.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
Index: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 41fa280b04c69bb173de6ed5479bb298c7a39112..64312d9a7c92fd296700e79464d0ecb1d8d004f6 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -690,8 +690,8 @@ gfx::Size WebContentsCaptureMachine::ComputeOptimalViewSize() const {
const gfx::NativeView view = rwhv->GetNativeView();
const float scale = ui::GetScaleFactorForNativeView(view);
if (scale > 1.0f) {
- const gfx::Size shrunk_size(
- gfx::ToFlooredSize(gfx::ScaleSize(optimal_size, 1.0f / scale)));
+ const gfx::Size shrunk_size =
+ gfx::ScaleToFlooredSize(optimal_size, 1.0f / scale);
if (shrunk_size.width() > 0 && shrunk_size.height() > 0)
optimal_size = shrunk_size;
}

Powered by Google App Engine
This is Rietveld 408576698