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

Issue 1861893002: Fix screen capturers to initialize on the same thread on which Start() is called. (Closed)

Created:
4 years, 8 months ago by Sergey Ulanov
Modified:
4 years, 8 months ago
Reviewers:
Jamie
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

Fix screen capturers to initialize on the same thread on which Start() is called. Previously screen capturers were initialized when they are created. This means that in the CRD host they were initialized on the thread that's different from the thread on which they are used. Because of this on Linux the host was using XErrorTrap() on two different threads and this is not supported. Now ScreenCapturer implementations always initialize themselves on the thread on which Start() is called. Also added ThreadChecker to make sure the capturers are always called from the same thread. BUG=600432 Committed: https://crrev.com/e8d4b7d8a3d298438a2ebd9ee8d5aa71f42cf033 Cr-Commit-Position: refs/heads/master@{#12285}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -80 lines) Patch
M webrtc/modules/desktop_capture/desktop_capturer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_mac.mm View 1 2 13 chunks +43 lines, -38 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_x11.cc View 1 2 12 chunks +42 lines, -42 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861893002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861893002/40001
4 years, 8 months ago (2016-04-06 00:14:54 UTC) #5
Sergey Ulanov
4 years, 8 months ago (2016-04-06 00:15:01 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_compile_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_compile_dbg/builds/4395) mac_gn_dbg on ...
4 years, 8 months ago (2016-04-06 00:16:27 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861893002/60001
4 years, 8 months ago (2016-04-06 00:24:54 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/14063)
4 years, 8 months ago (2016-04-06 00:37:20 UTC) #13
Jamie
https://codereview.webrtc.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm File webrtc/modules/desktop_capture/screen_capturer_mac.mm (right): https://codereview.webrtc.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm#newcode312 webrtc/modules/desktop_capture/screen_capturer_mac.mm:312: thread_checker_.DetachFromThread(); Doesn't this belong in Initialize() in that case? ...
4 years, 8 months ago (2016-04-06 01:17:31 UTC) #14
Sergey Ulanov
https://codereview.chromium.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm File webrtc/modules/desktop_capture/screen_capturer_mac.mm (right): https://codereview.chromium.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm#newcode312 webrtc/modules/desktop_capture/screen_capturer_mac.mm:312: thread_checker_.DetachFromThread(); On 2016/04/06 01:17:31, Jamie wrote: > Doesn't this ...
4 years, 8 months ago (2016-04-06 21:39:41 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861893002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861893002/80001
4 years, 8 months ago (2016-04-06 21:45:10 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 23:19:21 UTC) #19
Jamie
lgtm https://codereview.chromium.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm File webrtc/modules/desktop_capture/screen_capturer_mac.mm (right): https://codereview.chromium.org/1861893002/diff/60001/webrtc/modules/desktop_capture/screen_capturer_mac.mm#newcode312 webrtc/modules/desktop_capture/screen_capturer_mac.mm:312: thread_checker_.DetachFromThread(); On 2016/04/06 21:39:41, Sergey Ulanov wrote: > ...
4 years, 8 months ago (2016-04-07 00:38:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861893002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861893002/80001
4 years, 8 months ago (2016-04-07 17:42:08 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 8 months ago (2016-04-07 17:43:47 UTC) #24
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e8d4b7d8a3d298438a2ebd9ee8d5aa71f42cf033 Cr-Commit-Position: refs/heads/master@{#12285}
4 years, 8 months ago (2016-04-07 17:43:55 UTC) #26
guidou
4 years, 8 months ago (2016-04-12 13:31:01 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:80001) has been created in
https://codereview.webrtc.org/1882083002/ by guidou@webrtc.org.

The reason for reverting is: This is preventing a WebRTC roll into Chromium. See
https://codereview.chromium.org/1877263003/.

Powered by Google App Engine
This is Rietveld 408576698