Chromium Code Reviews| 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 |