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

Issue 2848443004: Allow Windows to return a monitor out of the first quadrant (Closed)

Created:
3 years, 7 months ago by Hzj_jie
Modified:
3 years, 7 months ago
Reviewers:
Sergey Ulanov
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow Windows to return a monitor out of the first quadrant Windows may return a DesktopCoordinate out of the first quadrant (x >= 0 && y >= 0), this typically happens when the primary and secondary monitors are swapped. i.e. The secondary monitor is on the left but the primary one is on the right. This change "moves" the entire screen from any quadrant to the (0, 0), so we can capture the monitors in other quadrants. BUG=chromium:715689 Review-Url: https://codereview.webrtc.org/2848443004 Cr-Original-Commit-Position: refs/heads/master@{#17935} Committed: https://chromium.googlesource.com/external/webrtc/+/049ec71e657eef3d15e0f15d60acb1a71e81b521 Review-Url: https://codereview.webrtc.org/2848443004 Cr-Commit-Position: refs/heads/master@{#17938} Committed: https://chromium.googlesource.com/external/webrtc/+/419c7427153f3e72ff2a0edf799faf3b1f07c845

Patch Set 1 #

Total comments: 12

Patch Set 2 : Resolve review comments #

Patch Set 3 : TranslateRect() should only be executed once #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc View 1 2 chunks +9 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc View 1 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 43 (34 generated)
Hzj_jie
3 years, 7 months ago (2017-04-27 22:24:48 UTC) #7
Sergey Ulanov
https://codereview.webrtc.org/2848443004/diff/40001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc (right): https://codereview.webrtc.org/2848443004/diff/40001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc#newcode155 webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc:155: void DxgiAdapterDuplicator::Translate(int32_t dx, int32_t dy) { TranslateRect()? https://codereview.webrtc.org/2848443004/diff/40001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc#newcode155 webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc:155: ...
3 years, 7 months ago (2017-04-28 01:15:03 UTC) #20
Hzj_jie
https://codereview.webrtc.org/2848443004/diff/40001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc (right): https://codereview.webrtc.org/2848443004/diff/40001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc#newcode155 webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc:155: void DxgiAdapterDuplicator::Translate(int32_t dx, int32_t dy) { On 2017/04/28 01:15:02, ...
3 years, 7 months ago (2017-04-28 01:58:32 UTC) #25
Sergey Ulanov
lgtm
3 years, 7 months ago (2017-04-28 20:29:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2848443004/60001
3 years, 7 months ago (2017-04-28 20:40:57 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/049ec71e657eef3d15e0f15d60acb1a71e81b521
3 years, 7 months ago (2017-04-28 20:43:35 UTC) #31
Hzj_jie
A revert of this CL (patchset #2 id:60001) has been created in https://codereview.chromium.org/2852783002/ by zijiehe@chromium.org. ...
3 years, 7 months ago (2017-04-28 21:30:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2848443004/80001
3 years, 7 months ago (2017-04-28 23:05:49 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 23:08:26 UTC) #43
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/external/webrtc/+/419c7427153f3e72ff2a0edf7...

Powered by Google App Engine
This is Rietveld 408576698