Chromium Code Reviews| 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..f24afe8e24b1352dcb2bed3550bbdb36396dd834 100644 |
| --- a/webrtc/modules/desktop_capture/desktop_geometry.h |
| +++ b/webrtc/modules/desktop_capture/desktop_geometry.h |
| @@ -91,6 +91,11 @@ class DesktopRect { |
| int32_t right, int32_t bottom) { |
| return DesktopRect(left, top, right, bottom); |
| } |
| + static DesktopRect MakeLTRB(DesktopVector top_left, |
| + DesktopVector right_bottom) { |
|
Jamie
2016/08/26 22:29:09
I don't think you're using this, and I'm not convi
Hzj_jie
2016/08/29 21:57:28
Sorry, both this change and DesktopFrame::GetPosAt
|
| + return DesktopRect(top_left.x(), top_left.y(), right_bottom.x(), |
| + right_bottom.y()); |
| + } |
| static DesktopRect MakeOriginSize(const DesktopVector& origin, |
| const DesktopSize& size) { |
| return MakeXYWH(origin.x(), origin.y(), size.width(), size.height()); |