From fcce48d9b942dba39471b78fdf2332adcb653c27 Mon Sep 17 00:00:00 2001 From: "jamiewalch@chromium.org" Date: Fri, 1 Nov 2013 17:21:18 +0000 Subject: Make DesktopResizer use ScreenResolution to facilitate DPI-awareness. This CL just gets the DPI information into the DesktopResizer back-ends. They don't do anything with it yet, and there should be no functional changes. BUG=172405 Review URL: https://codereview.chromium.org/54273006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232422 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/screen_resolution.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'remoting/host/screen_resolution.cc') diff --git a/remoting/host/screen_resolution.cc b/remoting/host/screen_resolution.cc index b792cef..ff3c477 100644 --- a/remoting/host/screen_resolution.cc +++ b/remoting/host/screen_resolution.cc @@ -43,4 +43,8 @@ bool ScreenResolution::IsEmpty() const { return dimensions_.is_empty() || dpi_.is_zero(); } +bool ScreenResolution::Equals(const ScreenResolution& other) const { + return dimensions_.equals(other.dimensions()) && dpi_.equals(other.dpi()); +} + } // namespace remoting -- cgit v1.1