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

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

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.h
diff --git a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
index c9838ad7a1e5d63c918da9b22fcde0c0276d0dac..364690bcb933ed667038993210cb4943e6ad4cc7 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
+++ b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
@@ -158,7 +158,9 @@
// The minimum GetNumFramesCaptured() returned by |duplicators_|.
int64_t GetNumFramesCaptured() const;
- // Returns a DesktopSize to cover entire |desktop_rect_|.
+ // Returns a DesktopSize to cover entire desktop_rect. This may be different
+ // than desktop_rect().size(), since top-left of the screen does not need to
+ // be started from (0, 0).
DesktopSize desktop_size() const;
// Returns the size of one screen. |id| should be >= 0. If system does not
@@ -179,12 +181,6 @@
// during first several capture attempts.
bool EnsureFrameCaptured(Context* context, SharedDesktopFrame* target);
- // Moves |desktop_rect_| and all underlying |duplicators_|, putting top left
- // corner of the desktop at (0, 0). This is necessary because DXGI_OUTPUT_DESC
- // may return negative coordinates. Called from DoInitialize() after all
- // DxgiAdapterDuplicator and DxgiOutputDuplicator instances are initialized.
- void TranslateRect();
-
// This lock must be locked whenever accessing any of the following objects.
rtc::CriticalSection lock_;

Powered by Google App Engine
This is Rietveld 408576698