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

Issue 2495143002: DirectX capturer flickers on the second monitor (Closed)

Created:
4 years, 1 month ago by Hzj_jie
Modified:
4 years, 1 month ago
Reviewers:
Sergey Ulanov, Jamie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

DirectX capturer flickers on the second monitor In DxgiOutputDuplicator, we need to convert between a monitor based coordinate and a entire screen based coordinate. i.e. Copying an updated area from a monitor (an output in DirectX API) to the entire screen frame (DesktopFrame). But DxgiOutputDuplicator always assumes the coordinate is based on screen frame. So we only need to convert a rectange in updated_region to monitor based coordinate when copying data from texture_. But in last_frame_, the data are always based on screen coordinate. So fixes are both required in line 167 and line 180. In the previous one, we do not need to convert the DesktopRect, which is already screen based, into screen based coordinate. In the late one, we do not need to convert the DesktopRect at all. So after these two changes, DxgiOutputDuplicator::TargetRect() function can be removed. Flickers of DirectX capturer can happen on any devices, but a virtual machine can easily reproduce it. While on a regular high performance machine, it's harder, but not totally impossible, to reproduce the issue. BUG=314516 Committed: https://crrev.com/8bc9326a0bc6bb2f07fbb1ef60dae1d8cddd2b4a Cr-Commit-Position: refs/heads/master@{#15075}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -14 lines) Patch
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc View 3 chunks +3 lines, -11 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Hzj_jie
4 years, 1 month ago (2016-11-12 03:41:38 UTC) #8
Jamie
The CL description is not very clear. When you say "before", are you referring to ...
4 years, 1 month ago (2016-11-14 18:20:14 UTC) #11
Hzj_jie
On 2016/11/14 18:20:14, Jamie wrote: > The CL description is not very clear. When you ...
4 years, 1 month ago (2016-11-14 19:38:34 UTC) #13
Jamie
lgtm
4 years, 1 month ago (2016-11-14 21:02:08 UTC) #14
Hzj_jie
Hi, Sergey, I still need your LGTM to submit.
4 years, 1 month ago (2016-11-15 01:29:48 UTC) #15
Sergey Ulanov
lgtm
4 years, 1 month ago (2016-11-15 01:51:36 UTC) #16
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/2495143002/2
4 years, 1 month ago (2016-11-15 01:52:03 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:2)
4 years, 1 month ago (2016-11-15 02:20:37 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 02:20:49 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8bc9326a0bc6bb2f07fbb1ef60dae1d8cddd2b4a
Cr-Commit-Position: refs/heads/master@{#15075}

Powered by Google App Engine
This is Rietveld 408576698