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

Issue 2268093002: [WebRTC] A real ScreenCapturer test (Closed)

Created:
4 years, 4 months ago by Hzj_jie
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

[WebRTC] A real ScreenCapturer test We do not have a real ScreenCapturer test before. And after CL 2210443002, a new ScreenDrawer interface is added to the code base to draw various shapes on the screen. This change is to use ScreenDrawer to test ScreenCapturer. Besides test cases, some other changes are included, 1. A WaitForPendingPaintings() function in ScreenDrawer, to wait for a ScreenDrawer to finish all the pending draws. This function now only sleeps 50 milliseconds on X11 and 100 milliseconds on Windows. 2. A Color structure to help handle a big-endian or little-endian safe color and provide functions to compare with DesktopFrame::data(). Both ScreenDrawer and DesktopFrameGenerator (in change 2202443002) can use this class to create colors and compare with or paint to a DesktopFrame. 3. ScreenDrawer now uses Color structure instead of uint32_t. BUG=314516 TBR=kjellander@chromium.org Committed: https://crrev.com/9d1c54ace0dc9f68da0152aa1ded2a8dba0a43ae Cr-Commit-Position: refs/heads/master@{#14058}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Resolve review comments #

Total comments: 53

Patch Set 3 : Resolve review comments #

Total comments: 6

Patch Set 4 : Resolve review comments #

Patch Set 5 : Sync latest changes #

Patch Set 6 : Remove DirectX capturer changes #

Total comments: 9

Patch Set 7 : Resolve review comments #

Total comments: 8

Patch Set 8 : Resolve review comments #

Patch Set 9 : Merge from 2313653003 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -66 lines) Patch
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/modules/desktop_capture/rgba_color.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A webrtc/modules/desktop_capture/rgba_color.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +166 lines, -16 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer.h View 1 2 3 4 5 6 7 1 chunk +19 lines, -9 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_linux.cc View 1 2 3 4 5 6 7 5 chunks +52 lines, -24 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_unittest.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -5 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_drawer_win.cc View 1 2 3 4 5 6 7 8 5 chunks +58 lines, -12 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (29 generated)
Hzj_jie
4 years, 4 months ago (2016-08-23 04:04:52 UTC) #3
Jamie
I've only looked at the ScreenPainter class so far. I think the changes I've suggested ...
4 years, 4 months ago (2016-08-23 18:50:54 UTC) #4
Hzj_jie
https://codereview.chromium.org/2268093002/diff/1/webrtc/modules/desktop_capture/screen_painter.cc File webrtc/modules/desktop_capture/screen_painter.cc (right): https://codereview.chromium.org/2268093002/diff/1/webrtc/modules/desktop_capture/screen_painter.cc#newcode37 webrtc/modules/desktop_capture/screen_painter.cc:37: memset(&result, 0, sizeof(Color)); On 2016/08/23 18:50:53, Jamie wrote: > ...
4 years, 3 months ago (2016-08-26 00:06:49 UTC) #5
Hzj_jie
https://codereview.chromium.org/2268093002/diff/1/webrtc/modules/desktop_capture/screen_painter.h File webrtc/modules/desktop_capture/screen_painter.h (right): https://codereview.chromium.org/2268093002/diff/1/webrtc/modules/desktop_capture/screen_painter.h#newcode30 webrtc/modules/desktop_capture/screen_painter.h:30: class ScreenPainter final { On 2016/08/26 00:06:49, Hzj_jie wrote: ...
4 years, 3 months ago (2016-08-26 02:05:24 UTC) #8
Jamie
It seems like part (4) of this CL is not really related to the other ...
4 years, 3 months ago (2016-08-26 22:29:10 UTC) #9
Hzj_jie
Thanks for the comments Jamie. The 4th issue is found by the ScreenCapturerTest.TwoDirectxCapturers. I can ...
4 years, 3 months ago (2016-08-29 21:57:29 UTC) #12
Jamie
Regarding splitting part 4 out of this CL, I think the right question to ask ...
4 years, 3 months ago (2016-08-31 17:39:39 UTC) #14
Hzj_jie
https://codereview.chromium.org/2268093002/diff/40001/webrtc/modules/desktop_capture/color.cc File webrtc/modules/desktop_capture/color.cc (right): https://codereview.chromium.org/2268093002/diff/40001/webrtc/modules/desktop_capture/color.cc#newcode22 webrtc/modules/desktop_capture/color.cc:22: } On 2016/08/31 17:39:39, Jamie wrote: > On 2016/08/29 ...
4 years, 3 months ago (2016-08-31 21:22:39 UTC) #18
Hzj_jie
https://codereview.chromium.org/2268093002/diff/40001/webrtc/modules/desktop_capture/color.cc File webrtc/modules/desktop_capture/color.cc (right): https://codereview.chromium.org/2268093002/diff/40001/webrtc/modules/desktop_capture/color.cc#newcode22 webrtc/modules/desktop_capture/color.cc:22: } On 2016/08/31 17:39:39, Jamie wrote: > On 2016/08/29 ...
4 years, 3 months ago (2016-08-31 21:22:40 UTC) #19
Hzj_jie
I have not removed the TwoDirectxCapturers test, but mark it as DISABLED. We can enable ...
4 years, 3 months ago (2016-09-01 03:07:38 UTC) #21
Jamie
LGTM
4 years, 3 months ago (2016-09-01 17:25:51 UTC) #22
Sergey Ulanov
https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/color.h File webrtc/modules/desktop_capture/color.h (right): https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/color.h#newcode47 webrtc/modules/desktop_capture/color.h:47: uint8_t blue() const; since these are lower-case accessors they ...
4 years, 3 months ago (2016-09-01 19:26:38 UTC) #23
Jamie
https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/screen_drawer_linux.cc File webrtc/modules/desktop_capture/screen_drawer_linux.cc (right): https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/screen_drawer_linux.cc#newcode101 webrtc/modules/desktop_capture/screen_drawer_linux.cc:101: xcolor.red = color.red() * 256 + color.red(); On 2016/09/01 ...
4 years, 3 months ago (2016-09-01 20:38:53 UTC) #24
Hzj_jie
https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/color.h File webrtc/modules/desktop_capture/color.h (right): https://codereview.chromium.org/2268093002/diff/180001/webrtc/modules/desktop_capture/color.h#newcode47 webrtc/modules/desktop_capture/color.h:47: uint8_t blue() const; On 2016/09/01 19:26:38, Sergey Ulanov wrote: ...
4 years, 3 months ago (2016-09-01 23:25:09 UTC) #27
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/2268093002/220001
4 years, 3 months ago (2016-09-02 18:24:41 UTC) #30
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 3 months ago (2016-09-02 18:24:46 UTC) #32
Hzj_jie
Sergey, do you have other comments?
4 years, 3 months ago (2016-09-02 19:21:39 UTC) #33
Sergey Ulanov
several more style nits. LGTM when they are addressed. https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h File webrtc/modules/desktop_capture/color.h (right): https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h#newcode26 webrtc/modules/desktop_capture/color.h:26: ...
4 years, 3 months ago (2016-09-02 19:35:00 UTC) #34
Hzj_jie
https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h File webrtc/modules/desktop_capture/color.h (right): https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h#newcode26 webrtc/modules/desktop_capture/color.h:26: struct Color final { On 2016/09/02 19:35:00, Sergey Ulanov ...
4 years, 3 months ago (2016-09-02 21:46:09 UTC) #35
Hzj_jie
https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h File webrtc/modules/desktop_capture/color.h (right): https://codereview.chromium.org/2268093002/diff/220001/webrtc/modules/desktop_capture/color.h#newcode26 webrtc/modules/desktop_capture/color.h:26: struct Color final { On 2016/09/02 19:35:00, Sergey Ulanov ...
4 years, 3 months ago (2016-09-02 21:46:09 UTC) #36
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/2268093002/240001
4 years, 3 months ago (2016-09-02 21:46:54 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/8028)
4 years, 3 months ago (2016-09-02 22:04:08 UTC) #41
Hzj_jie
Hi, Henrik, PTAL. I have added several real ScreenCapturer tests in this change, which impacts ...
4 years, 3 months ago (2016-09-02 23:14:01 UTC) #43
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/2268093002/240001
4 years, 3 months ago (2016-09-03 00:20:57 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 3 months ago (2016-09-03 02:10:38 UTC) #48
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9d1c54ace0dc9f68da0152aa1ded2a8dba0a43ae Cr-Commit-Position: refs/heads/master@{#14058}
4 years, 3 months ago (2016-09-03 02:10:52 UTC) #50
åsapersson
A revert of this CL (patchset #8 id:240001) has been created in https://codereview.webrtc.org/2310953002/ by asapersson@webrtc.org. ...
4 years, 3 months ago (2016-09-05 12:45:23 UTC) #51
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/2268093002/280001
4 years, 3 months ago (2016-09-07 01:35:45 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-07 02:03:42 UTC) #58
Hzj_jie
4 years, 3 months ago (2016-09-07 19:06:39 UTC) #59
Message was sent while issue was closed.
An exactly same change 2313653003 has been submitted. So this one should be
closed.

Powered by Google App Engine
This is Rietveld 408576698