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..e3f7bcefe3ccf495a9c0d04c1e4cc55152870cda 100644 |
--- a/webrtc/modules/desktop_capture/desktop_geometry.h |
+++ b/webrtc/modules/desktop_capture/desktop_geometry.h |
@@ -124,6 +124,10 @@ class DesktopRect { |
// Finds intersection with |rect|. |
void IntersectWith(const DesktopRect& rect); |
+ // Expands current rectangle by |padding| pixels larger in each direction. |
+ // Using a negative padding to shrink. |
+ void Expand(int padding); |
+ |
// Adds (dx, dy) to the position of the rectangle. |
void Translate(int32_t dx, int32_t dy); |
void Translate(DesktopVector d) { Translate(d.x(), d.y()); }; |
@@ -142,4 +146,3 @@ class DesktopRect { |
} // namespace webrtc |
#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_GEOMETRY_H_ |
- |