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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc

Issue 2852783002: Revert of Allow Windows to return a monitor out of the first quadrant (Closed)
Patch Set: Created 3 years, 8 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
Index: webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
index ad7fd7036ef5683629be386f4384f904a236a61c..12876c2c89d4612731de10c6e1ba51932f1d8003 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
@@ -193,7 +193,6 @@
std::max(left.right(), right.right()),
std::max(left.bottom(), right.bottom()));
}
- TranslateRect();
}
HDC hdc = GetDC(nullptr);
@@ -296,7 +295,7 @@
}
DesktopSize DxgiDuplicatorController::desktop_size() const {
- return desktop_rect_.size();
+ return DesktopSize(desktop_rect_.right(), desktop_rect_.bottom());
}
DesktopRect DxgiDuplicatorController::ScreenRect(int id) const {
@@ -379,13 +378,4 @@
return true;
}
-void DxgiDuplicatorController::TranslateRect() {
- const DesktopVector position =
- DesktopVector().subtract(desktop_rect_.top_left());
- desktop_rect_.Translate(position);
- for (auto& duplicator : duplicators_) {
- duplicator.TranslateRect(position);
- }
-}
-
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698