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

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

Issue 1845113002: DirectX based screen capturer logic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Several lint formatting Created 4 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/desktop_geometry.cc
diff --git a/webrtc/modules/desktop_capture/desktop_geometry.cc b/webrtc/modules/desktop_capture/desktop_geometry.cc
index 1ff7c683c79828a0d8c4e5f9c4c4cb23fd365243..18121541434a48b98e751d753cf239f9b510bfc3 100644
--- a/webrtc/modules/desktop_capture/desktop_geometry.cc
+++ b/webrtc/modules/desktop_capture/desktop_geometry.cc
@@ -44,5 +44,11 @@ void DesktopRect::Translate(int32_t dx, int32_t dy) {
bottom_ += dy;
}
-} // namespace webrtc
+void DesktopRect::Expand(int padding) {
+ left_ -= padding;
+ top_ -= padding;
+ right_ += padding;
+ bottom_ += padding;
+}
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698