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

Unified Diff: webrtc/modules/desktop_capture/desktop_geometry.h

Issue 2202443002: [WebRTC] Add ScreenCapturerDifferWrapper to share Differ across ScreenCapturers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Sync latest changes Created 4 years, 3 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/desktop_geometry.h
diff --git a/webrtc/modules/desktop_capture/desktop_geometry.h b/webrtc/modules/desktop_capture/desktop_geometry.h
index 047eeec3d9c8fd89c13f29347a0a67b77b2096da..8e9b9183a82e9f781840da14ae977ecd442ba09e 100644
--- a/webrtc/modules/desktop_capture/desktop_geometry.h
+++ b/webrtc/modules/desktop_capture/desktop_geometry.h
@@ -128,6 +128,16 @@ class DesktopRect {
void Translate(int32_t dx, int32_t dy);
void Translate(DesktopVector d) { Translate(d.x(), d.y()); };
+ // Enlarges current DesktopRect by subtracting |left_offset| and |top_offset|
+ // from |left_| and |top_|, and adding |right_offset| and |bottom_offset| to
+ // |right_| and |bottom_|. This function does not normalize the result, so
+ // |left_| and |top_| may be less than zero or larger than |right_| and
+ // |bottom_|.
+ void Extend(int32_t left_offset,
+ int32_t top_offset,
+ int32_t right_offset,
+ int32_t bottom_offset);
+
private:
DesktopRect(int32_t left, int32_t top, int32_t right, int32_t bottom)
: left_(left), top_(top), right_(right), bottom_(bottom) {
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_frame_generator.cc ('k') | webrtc/modules/desktop_capture/desktop_geometry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698