diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 17:21:18 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 17:21:18 +0000 |
commit | fcce48d9b942dba39471b78fdf2332adcb653c27 (patch) | |
tree | 3e043c5abf97d4e3c1ebc23152ec76c3e99d04f9 /remoting/host/screen_resolution.cc | |
parent | e7e3802f6dc5ac415ef926ee022d1e26f10a50b9 (diff) | |
download | chromium_src-fcce48d9b942dba39471b78fdf2332adcb653c27.zip chromium_src-fcce48d9b942dba39471b78fdf2332adcb653c27.tar.gz chromium_src-fcce48d9b942dba39471b78fdf2332adcb653c27.tar.bz2 |
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
Diffstat (limited to 'remoting/host/screen_resolution.cc')
-rw-r--r-- | remoting/host/screen_resolution.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 |