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

Issue 2801433002: DirectX capturer may crash after switching shared screen (Closed)

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

Description

DirectX capturer may crash after switching shared screen The root cause is because the offset used in DxgiOutputDuplicator should always depend on the position of the monitor in the system instead of the offset in the target frame. Otherwise, once switching between two monitors with different screen size, the updated region in the context would base on the old monitor, and cause the copied regions to be out of the source DesktopFrame. This issue also impacts the SpreadContextChange() function, the updated region stores in the Context should also only depend on the position of the monitor. BUG=chromium:706797 Review-Url: https://codereview.webrtc.org/2801433002 Cr-Commit-Position: refs/heads/master@{#17548} Committed: https://chromium.googlesource.com/external/webrtc/+/7343c8e09fc1d1ea9e8291c72f0b18cef4ca3dd3

Patch Set 1 #

Patch Set 2 : context->updated_region is always untranslated #

Total comments: 10

Patch Set 3 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -33 lines) Patch
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h View 1 2 3 chunks +13 lines, -8 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc View 1 2 8 chunks +38 lines, -25 lines 0 comments Download

Messages

Total messages: 32 (26 generated)
Hzj_jie
3 years, 8 months ago (2017-04-04 20:34:17 UTC) #15
Hzj_jie
Updated.
3 years, 8 months ago (2017-04-04 22:59:48 UTC) #20
Sergey Ulanov
lgtm with some naming/style nits. https://codereview.webrtc.org/2801433002/diff/80001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc (right): https://codereview.webrtc.org/2801433002/diff/80001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc#newcode183 webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc:183: // TODO(zijiehe): Why clearing ...
3 years, 8 months ago (2017-04-05 19:47:57 UTC) #21
Hzj_jie
https://codereview.webrtc.org/2801433002/diff/80001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc (right): https://codereview.webrtc.org/2801433002/diff/80001/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc#newcode183 webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc:183: // TODO(zijiehe): Why clearing context->updated_region() here triggers On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 21:16:59 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/2801433002/100001
3 years, 8 months ago (2017-04-05 21:19:27 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 21:22:03 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/external/webrtc/+/7343c8e09fc1d1ea9e8291c72...

Powered by Google App Engine
This is Rietveld 408576698