Add a comment to explain the coordinate of GetWindowRectInVirtualScreen()
CroppingWindowCapturer::GetWindowRectInVirtualScreen() expects to return a
rectangle in full desktop coordinate.
Bug: webrtc:7950
Change-Id: Id1b5de4d655cfc3f375434a696c77029c684880b
Reviewed-on: https://chromium-review.googlesource.com/651706
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Zijie He <zijiehe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#19700}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: f75daa8cb95ed811eb09dc8ed99ddc34605b1d93
diff --git a/modules/desktop_capture/cropping_window_capturer.h b/modules/desktop_capture/cropping_window_capturer.h
index 5b5a41d..b8b2751 100644
--- a/modules/desktop_capture/cropping_window_capturer.h
+++ b/modules/desktop_capture/cropping_window_capturer.h
@@ -55,7 +55,9 @@
virtual bool ShouldUseScreenCapturer() = 0;
// Returns the window area relative to the top left of the virtual screen
- // within the bounds of the virtual screen.
+ // within the bounds of the virtual screen. This function should return the
+ // DesktopRect in full desktop coordinates, i.e. the top-left monitor starts
+ // from (0, 0).
virtual DesktopRect GetWindowRectInVirtualScreen() = 0;
WindowId selected_window() const { return selected_window_; }