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

Unified Diff: remoting/host/screen_resolution.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « remoting/host/screen_resolution.h ('k') | remoting/host/screen_resolution_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_resolution.cc
diff --git a/remoting/host/screen_resolution.cc b/remoting/host/screen_resolution.cc
index ff3c4777112f445f74d8cc9f69491012e2641f32..b5125f2e8c401afcbabeee6aae5a6b3dce72559c 100644
--- a/remoting/host/screen_resolution.cc
+++ b/remoting/host/screen_resolution.cc
@@ -4,6 +4,8 @@
#include "remoting/host/screen_resolution.h"
+#include <stdint.h>
+
#include <algorithm>
#include <limits>
@@ -28,14 +30,14 @@ ScreenResolution::ScreenResolution(const webrtc::DesktopSize& dimensions,
webrtc::DesktopSize ScreenResolution::ScaleDimensionsToDpi(
const webrtc::DesktopVector& new_dpi) const {
- int64 width = dimensions_.width();
- int64 height = dimensions_.height();
+ int64_t width = dimensions_.width();
+ int64_t height = dimensions_.height();
// Scale the screen dimensions to new DPI.
width = std::min(width * new_dpi.x() / dpi_.x(),
- static_cast<int64>(std::numeric_limits<int32>::max()));
+ static_cast<int64_t>(std::numeric_limits<int32_t>::max()));
height = std::min(height * new_dpi.y() / dpi_.y(),
- static_cast<int64>(std::numeric_limits<int32>::max()));
+ static_cast<int64_t>(std::numeric_limits<int32_t>::max()));
return webrtc::DesktopSize(width, height);
}
« no previous file with comments | « remoting/host/screen_resolution.h ('k') | remoting/host/screen_resolution_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698