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

Issue 2703123002: Skips the first frame in DxgiDuplicatorController (Closed)

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

Description

Skips the first frame in DxgiDuplicatorController A bug has been reported to complaint the ScreenCapturerWinDirectx cannot capture the first frame, which is used in "Report an issue" page. A simple solution here is to skip the first frame. This change also removes the friend relationship between DxgiDuplicatorController / DxgiAdapterDuplicator / DxgiOutputDuplicator, which is not really necessary. BUG=682112 Review-Url: https://codereview.webrtc.org/2703123002 Cr-Commit-Position: refs/heads/master@{#16815} Committed: https://chromium.googlesource.com/external/webrtc/+/8697f9afbaa42c55f07331457f4427471f11a861

Patch Set 1 #

Total comments: 24

Patch Set 2 : Resolve review comments #

Patch Set 3 : Reduce frames_to_skip to 1 #

Patch Set 4 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -32 lines) Patch
M webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.h View 1 1 chunk +7 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h View 1 2 chunks +21 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc View 1 2 3 5 chunks +108 lines, -18 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.h View 3 chunks +9 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc View 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 49 (35 generated)
Hzj_jie
3 years, 10 months ago (2017-02-21 01:47:35 UTC) #19
Sergey Ulanov
This looks like a workaround that doesn't address the root cause. Do you know why ...
3 years, 10 months ago (2017-02-21 21:10:29 UTC) #20
Hzj_jie
On 2017/02/21 21:10:29, Sergey Ulanov wrote: > This looks like a workaround that doesn't address ...
3 years, 10 months ago (2017-02-21 22:03:40 UTC) #21
Hzj_jie
On 2017/02/21 22:03:40, Hzj_jie wrote: > On 2017/02/21 21:10:29, Sergey Ulanov wrote: > > This ...
3 years, 10 months ago (2017-02-22 08:52:50 UTC) #22
Sergey Ulanov
https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc#newcode151 webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc:151: int64_t DxgiAdapterDuplicator::num_frames_captured() const { It should be called GetNumFramesCaptured() ...
3 years, 9 months ago (2017-02-23 19:07:30 UTC) #23
Hzj_jie
https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc File webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc#newcode151 webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc:151: int64_t DxgiAdapterDuplicator::num_frames_captured() const { On 2017/02/23 19:07:30, Sergey Ulanov ...
3 years, 9 months ago (2017-02-23 20:52:11 UTC) #26
Sergey Ulanov
https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc File webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc#newcode28 webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc:28: void SleepMoreThanMs(int milliseconds) { On 2017/02/23 20:52:11, Hzj_jie wrote: ...
3 years, 9 months ago (2017-02-23 21:06:43 UTC) #27
Hzj_jie
https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc File webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc#newcode28 webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc:28: void SleepMoreThanMs(int milliseconds) { On 2017/02/23 21:06:43, Sergey Ulanov ...
3 years, 9 months ago (2017-02-23 21:48:58 UTC) #30
Hzj_jie
On 2017/02/23 21:48:58, Hzj_jie wrote: > https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc > File webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc (right): > > https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc#newcode28 > ...
3 years, 9 months ago (2017-02-23 22:52:24 UTC) #33
Sergey Ulanov
I still don't think we need SleepMoreThanMs(). Otherwise LGTM https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc File webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc#newcode28 webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc:28: ...
3 years, 9 months ago (2017-02-24 00:40:40 UTC) #36
Hzj_jie
On 2017/02/24 00:40:40, Sergey Ulanov wrote: > I still don't think we need SleepMoreThanMs(). Otherwise ...
3 years, 9 months ago (2017-02-24 01:27:58 UTC) #39
Hzj_jie
https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc File webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc (right): https://codereview.webrtc.org/2703123002/diff/60001/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc#newcode28 webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc:28: void SleepMoreThanMs(int milliseconds) { On 2017/02/24 00:40:40, Sergey Ulanov ...
3 years, 9 months ago (2017-02-24 01:28:52 UTC) #41
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/2703123002/120001
3 years, 9 months ago (2017-02-24 05:41:04 UTC) #46
commit-bot: I haz the power
3 years, 9 months ago (2017-02-24 05:43:45 UTC) #49
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/8697f9afbaa42c55f07331457...

Powered by Google App Engine
This is Rietveld 408576698