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

Unified Diff: remoting/host/capturer_gdi.cc

Issue 2711001: Fix chromoting build issues on Windows (Closed)
Patch Set: fixed gyp Created 10 years, 6 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 | « remoting/host/capturer_gdi.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_gdi.cc
diff --git a/remoting/host/capturer_gdi.cc b/remoting/host/capturer_gdi.cc
index 45e52242abc7b3722eabd543d527280e78f12dc4..3b5a84416d707be1dbb05b06aa630dc8a63f7402 100644
--- a/remoting/host/capturer_gdi.cc
+++ b/remoting/host/capturer_gdi.cc
@@ -66,15 +66,11 @@ void CapturerGdi::GetDataStride(int strides[]) const {
}
int CapturerGdi::GetWidth() const {
- if (!width_)
- width_ = GetSystemMetrics(SM_CXSCREEN);
- return width_;
+ return GetSystemMetrics(SM_CXSCREEN);
}
int CapturerGdi::GetHeight() const {
- if (!height_)
- height_ = GetSystemMetrics(SM_CYSCREEN);
- return height_;
+ return GetSystemMetrics(SM_CYSCREEN);
}
// TODO(fbarchard): handle error cases.
« no previous file with comments | « remoting/host/capturer_gdi.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698