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

Issue 2827983007: Clear DesktopFrame in DxgiFrame to avoid legacy image (Closed)

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

Description

Clear DesktopFrame in DxgiFrame to avoid legacy image Once the buffer returned by Windows is not newly allocated, it may contain legacy images from previous capturing attempts. This usually is not a problem, as implementations other than ScreenCapturerWinDirectx paint each pixel on the frame. But due to the one capturer per monitor design of ScreenCapturerWinDirectx, part of the frame may not be covered by any DxgiOutputDuplicator, and cause the legacy image to be shown. So a very simple fix is to clear the DesktopFrame in DxgiFrame. BUG=708766 Review-Url: https://codereview.webrtc.org/2827983007 Cr-Commit-Position: refs/heads/master@{#17847} Committed: https://chromium.googlesource.com/external/webrtc/+/9d1ea5cc22f7f8801b6980d524b237088e01f4e1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Resolve review comments #

Patch Set 3 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M webrtc/modules/desktop_capture/win/dxgi_frame.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (28 generated)
Hzj_jie
3 years, 8 months ago (2017-04-20 21:50:50 UTC) #5
Sergey Ulanov
https://codereview.webrtc.org/2827983007/diff/1/webrtc/modules/desktop_capture/win/dxgi_frame.cc File webrtc/modules/desktop_capture/win/dxgi_frame.cc (right): https://codereview.webrtc.org/2827983007/diff/1/webrtc/modules/desktop_capture/win/dxgi_frame.cc#newcode47 webrtc/modules/desktop_capture/win/dxgi_frame.cc:47: memset(frame->data(), 0, frame->stride() * frame->size().height()); I don't think it ...
3 years, 8 months ago (2017-04-20 22:01:11 UTC) #6
Hzj_jie
I will wait for the Windows bots to be back. https://codereview.webrtc.org/2827983007/diff/1/webrtc/modules/desktop_capture/win/dxgi_frame.cc File webrtc/modules/desktop_capture/win/dxgi_frame.cc (right): https://codereview.webrtc.org/2827983007/diff/1/webrtc/modules/desktop_capture/win/dxgi_frame.cc#newcode47 ...
3 years, 8 months ago (2017-04-20 22:48:58 UTC) #13
Sergey Ulanov
lgtm
3 years, 7 months ago (2017-04-24 17:13:00 UTC) #24
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/2827983007/60001
3 years, 7 months ago (2017-04-24 18:47:34 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-04-24 18:50:14 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/9d1ea5cc22f7f8801b6980d52...

Powered by Google App Engine
This is Rietveld 408576698