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

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

Issue 2845213002: DesktopRect::UnionWith() to extend current rect to cover the input rect (Closed)
Patch Set: Rename JoinWith to UnionWith 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
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/desktop_geometry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8e9b9183a82e9f781840da14ae977ecd442ba09e..495ef715808a3815461e6930d27ee375c548c1b8 100644
--- a/webrtc/modules/desktop_capture/desktop_geometry.h
+++ b/webrtc/modules/desktop_capture/desktop_geometry.h
@@ -138,6 +138,10 @@ class DesktopRect {
int32_t right_offset,
int32_t bottom_offset);
+ // Finds the minimum area to cover both |this| and |rect|. If |this| is empty,
+ // replaces |this| with |rect|.
jamiewalch 2017/05/02 22:18:11 This is not symmetric w.r.t |this| and |rect|. Spe
Hzj_jie 2017/05/02 23:28:28 A good point, I failed to notice it. I believe a c
+ void UnionWith(const DesktopRect& rect);
+
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 | « no previous file | webrtc/modules/desktop_capture/desktop_geometry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698