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

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

Issue 2268093002: [WebRTC] A real ScreenCapturer test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Resolve review comments Created 4 years, 4 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.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());

Powered by Google App Engine
This is Rietveld 408576698