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

Issue 3003643002: Allow external TaskQueue implementations on Linux (Closed)

Created:
3 years, 4 months ago by perkj_webrtc
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

This cl refactor TaskQueues to use a PIMPL implementation on linux/Android. In later steps the Win/Mac implementation will also be refactored. The rtc_task_queue target is split up in three separate targets: rtc_task_queue_api: Contains the header file task_queue.h but no implementation. Only external TaskQueue implementations should directly depend on this target. rtc_task_queue_impl: Contains the default implementation of task_queue.h. Only external application targets should directly depend on this target. rtc_task_queue: WebRTC targets should depend on this target. It unconditionally depend on rtc_task_queue_api and depending on the new build flag,|rtc_link_task_queue_impl|, depend on rtc_task_queue_impl. BUG=webrtc:8160 Review-Url: https://codereview.webrtc.org/3003643002 Cr-Commit-Position: refs/heads/master@{#19516} Committed: https://chromium.googlesource.com/external/webrtc/+/650fdae91c690fb9904f72873daeb81415ff9ba1

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix deps #

Patch Set 3 : Switched to use rtc_source_set instead. #

Total comments: 14

Patch Set 4 : Add rtc_task_queue_api target. #

Total comments: 3

Patch Set 5 : Removed special link for libjingle_peerconnection. Add comments to build targets. #

Patch Set 6 : .. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -82 lines) Patch
M webrtc/rtc_base/BUILD.gn View 1 2 3 4 1 chunk +39 lines, -10 lines 0 comments Download
M webrtc/rtc_base/task_queue.h View 1 2 3 4 5 3 chunks +6 lines, -37 lines 0 comments Download
M webrtc/rtc_base/task_queue_libevent.cc View 14 chunks +141 lines, -35 lines 0 comments Download
M webrtc/webrtc.gni View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (32 generated)
perkj_webrtc
Here is the link time cl.
3 years, 4 months ago (2017-08-22 13:06:51 UTC) #4
perkj_webrtc
On 2017/08/22 13:06:51, perkj_webrtc wrote: > Here is the link time cl. But I have ...
3 years, 4 months ago (2017-08-22 13:08:31 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/3003643002/diff/1/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (left): https://codereview.webrtc.org/3003643002/diff/1/webrtc/rtc_base/BUILD.gn#oldcode304 webrtc/rtc_base/BUILD.gn:304: "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc", Ah, Chrome already overrides task queue, I had ...
3 years, 4 months ago (2017-08-22 13:39:44 UTC) #8
perkj_webrtc
https://codereview.webrtc.org/3003643002/diff/1/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (left): https://codereview.webrtc.org/3003643002/diff/1/webrtc/rtc_base/BUILD.gn#oldcode304 webrtc/rtc_base/BUILD.gn:304: "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc", On 2017/08/22 13:39:44, nisse-webrtc wrote: > Ah, Chrome ...
3 years, 4 months ago (2017-08-22 18:52:38 UTC) #9
nisse-webrtc
I'm waiting for Karl's comments, he had read up on the recommended way to do ...
3 years, 4 months ago (2017-08-23 11:00:26 UTC) #28
perkj_webrtc
https://codereview.webrtc.org/3003643002/diff/40001/webrtc/pc/BUILD.gn File webrtc/pc/BUILD.gn (right): https://codereview.webrtc.org/3003643002/diff/40001/webrtc/pc/BUILD.gn#newcode230 webrtc/pc/BUILD.gn:230: # regardless of the flag |rtc_link_task_queue_impl|. On 2017/08/23 11:00:25, ...
3 years, 4 months ago (2017-08-23 11:12:37 UTC) #29
nisse-webrtc
Looks pretty good. We need to agree on scoped_ref_ptr vs unique_ptr, and then I'd only ...
3 years, 4 months ago (2017-08-23 11:24:47 UTC) #30
mbonadei
https://codereview.webrtc.org/3003643002/diff/40001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3003643002/diff/40001/webrtc/rtc_base/BUILD.gn#newcode328 webrtc/rtc_base/BUILD.gn:328: "task_queue.h", On 2017/08/23 11:12:37, perkj_webrtc wrote: > On 2017/08/23 ...
3 years, 4 months ago (2017-08-23 12:12:29 UTC) #31
kwiberg-webrtc
Looks very good! But it's obvious that we have a long series of cleanup CLs ...
3 years, 4 months ago (2017-08-23 13:23:26 UTC) #32
nisse-webrtc
https://codereview.webrtc.org/3003643002/diff/40001/webrtc/pc/BUILD.gn File webrtc/pc/BUILD.gn (right): https://codereview.webrtc.org/3003643002/diff/40001/webrtc/pc/BUILD.gn#newcode230 webrtc/pc/BUILD.gn:230: # regardless of the flag |rtc_link_task_queue_impl|. On 2017/08/23 13:23:25, ...
3 years, 4 months ago (2017-08-23 14:16:02 UTC) #33
mbonadei
> gn doesn't have any notion of alternatives or weak dependencies? Ideally, it > would ...
3 years, 4 months ago (2017-08-23 14:52:13 UTC) #34
perkj_webrtc
ok, I would like to land this now. Can you please review? https://codereview.webrtc.org/3003643002/diff/40001/webrtc/pc/BUILD.gn File webrtc/pc/BUILD.gn ...
3 years, 3 months ago (2017-08-25 10:09:38 UTC) #41
kwiberg-webrtc
lgtm
3 years, 3 months ago (2017-08-25 11:02:38 UTC) #42
nisse-webrtc
lgtm. I haven't seen any objections to your use of scoped_ref_ptr, but maybe check with ...
3 years, 3 months ago (2017-08-25 11:26:11 UTC) #43
perkj_webrtc
On 2017/08/25 11:26:11, nisse-webrtc wrote: > lgtm. > > I haven't seen any objections to ...
3 years, 3 months ago (2017-08-25 11:27:11 UTC) #44
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/3003643002/100001
3 years, 3 months ago (2017-08-25 11:27:20 UTC) #46
commit-bot: I haz the power
3 years, 3 months ago (2017-08-25 12:00:19 UTC) #49
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/external/webrtc/+/650fdae91c690fb9904f72873...

Powered by Google App Engine
This is Rietveld 408576698