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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 2021773002: Use only DIPs size in ClientResolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index e3a63e6d81c71039358985bd150c2c46eee2a719..90db58344b3f2324574d56baa893dca5d9181a33 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -811,15 +811,16 @@ void ChromotingInstance::HandleNotifyClientResolution(
}
protocol::ClientResolution client_resolution;
- client_resolution.set_width(width);
- client_resolution.set_height(height);
client_resolution.set_x_dpi(x_dpi);
client_resolution.set_y_dpi(y_dpi);
-
- // Include the legacy width & height in DIPs for use by older hosts.
client_resolution.set_dips_width((width * kDefaultDPI) / x_dpi);
client_resolution.set_dips_height((height * kDefaultDPI) / y_dpi);
+ // Include the legacy width & height in physical pixels for use by older
+ // hosts.
+ client_resolution.set_width_deprecated(width);
+ client_resolution.set_height_deprecated(height);
+
client_->host_stub()->NotifyClientResolution(client_resolution);
}
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698