summaryrefslogtreecommitdiffstats
path: root/remoting/client/chromoting_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/client/chromoting_view.cc')
-rw-r--r--remoting/client/chromoting_view.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/remoting/client/chromoting_view.cc b/remoting/client/chromoting_view.cc
index f985669..95d2dfa 100644
--- a/remoting/client/chromoting_view.cc
+++ b/remoting/client/chromoting_view.cc
@@ -14,6 +14,14 @@ ChromotingView::ChromotingView()
frame_height_(0) {
}
+
+// TODO(garykac): This assumes a single screen. This will need to be adjusted
+// to add support for mulitple monitors.
+void ChromotingView::GetScreenSize(int* width, int* height) {
+ *width = frame_width_;
+ *height = frame_height_;
+}
+
bool ChromotingView::SetupDecoder(UpdateStreamEncoding encoding) {
if (encoding == EncodingInvalid) {
LOG(ERROR) << "Cannot create encoder for EncodingInvalid";