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

Issue 2716473002: Use TaskQueue in IncomingVideoStream (Closed)

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

Description

Use TaskQueue in IncomingVideoStream instead of the PlatformThread + event timer approach. BUG=webrtc:7219, webrtc:7253 Review-Url: https://codereview.webrtc.org/2716473002 Cr-Commit-Position: refs/heads/master@{#16860} Committed: https://chromium.googlesource.com/external/webrtc/+/e2d1d6429557af4560a97581a5e282b54c742173

Patch Set 1 : rebase and squash #

Total comments: 12

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Patch Set 5 : Ignore frames from the past #

Patch Set 6 : remove return statement and add TODO #

Patch Set 7 : ugh, looks like a pebkac #

Patch Set 8 : test pebkac again #

Patch Set 9 : Remove DCHECK #

Patch Set 10 : Print render_time_ms instead of timestamp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -99 lines) Patch
M webrtc/base/task_queue_unittest.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/common_video/include/incoming_video_stream.h View 2 chunks +8 lines, -19 lines 0 comments Download
M webrtc/common_video/incoming_video_stream.cc View 1 2 2 chunks +44 lines, -67 lines 0 comments Download
M webrtc/common_video/video_render_frames.h View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M webrtc/common_video/video_render_frames.cc View 1 2 3 4 5 6 7 8 9 6 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 78 (46 generated)
tommi
cleanup
3 years, 10 months ago (2017-02-22 22:21:12 UTC) #5
tommi
add comment
3 years, 10 months ago (2017-02-22 22:26:37 UTC) #6
tommi
use lambda
3 years, 10 months ago (2017-02-22 22:40:57 UTC) #7
tommi
Simplify
3 years, 10 months ago (2017-02-22 23:55:24 UTC) #12
tommi
Fix constants, move to cc
3 years, 10 months ago (2017-02-23 00:15:46 UTC) #15
tommi
Rebase
3 years, 10 months ago (2017-02-23 08:49:11 UTC) #16
tommi
rebase and squash
3 years, 10 months ago (2017-02-23 11:17:44 UTC) #17
tommi
3 years, 10 months ago (2017-02-23 11:33:16 UTC) #27
mflodman
A few comments / questions, then LGTM. https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/include/incoming_video_stream.h File webrtc/common_video/include/incoming_video_stream.h (left): https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/include/incoming_video_stream.h#oldcode44 webrtc/common_video/include/incoming_video_stream.h:44: rtc::CriticalSection buffer_critsect_; ...
3 years, 10 months ago (2017-02-23 15:23:25 UTC) #32
mflodman
https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/video_render_frames.cc File webrtc/common_video/video_render_frames.cc (right): https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/video_render_frames.cc#newcode65 webrtc/common_video/video_render_frames.cc:65: incoming_frames_.emplace_back(std::move(new_frame)); On 2017/02/23 15:23:25, mflodman wrote: > Looking through ...
3 years, 10 months ago (2017-02-23 15:29:20 UTC) #33
tommi
Address comments
3 years, 10 months ago (2017-02-23 18:59:56 UTC) #34
tommi
https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/include/incoming_video_stream.h File webrtc/common_video/include/incoming_video_stream.h (left): https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/include/incoming_video_stream.h#oldcode44 webrtc/common_video/include/incoming_video_stream.h:44: rtc::CriticalSection buffer_critsect_; On 2017/02/23 15:23:25, mflodman wrote: > Very ...
3 years, 10 months ago (2017-02-23 19:00:09 UTC) #35
mflodman
https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/incoming_video_stream.cc File webrtc/common_video/incoming_video_stream.cc (right): https://codereview.webrtc.org/2716473002/diff/140001/webrtc/common_video/incoming_video_stream.cc#newcode37 webrtc/common_video/incoming_video_stream.cc:37: if (stream_->render_buffers_.AddFrame(std::move(frame_)) == 1) On 2017/02/23 19:00:08, tommi (webrtc) ...
3 years, 10 months ago (2017-02-24 15:29:58 UTC) #40
tommi
Address comments
3 years, 10 months ago (2017-02-24 20:41:16 UTC) #41
tommi
https://codereview.webrtc.org/2716473002/diff/160001/webrtc/common_video/video_render_frames.cc File webrtc/common_video/video_render_frames.cc (right): https://codereview.webrtc.org/2716473002/diff/160001/webrtc/common_video/video_render_frames.cc#newcode69 webrtc/common_video/video_render_frames.cc:69: // correctly ordered. On 2017/02/24 15:29:58, mflodman wrote: > ...
3 years, 10 months ago (2017-02-24 20:41:53 UTC) #42
tommi
Rebase
3 years, 10 months ago (2017-02-24 20:44:23 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/2716473002/200001
3 years, 10 months ago (2017-02-24 20:45:24 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: mac_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_asan/builds/22361)
3 years, 10 months ago (2017-02-24 20:56:53 UTC) #48
tommi
Looks like this is indeed happening in a few tests and it looks kind of ...
3 years, 10 months ago (2017-02-24 21:40:05 UTC) #49
tommi
Ignore frames from the past
3 years, 10 months ago (2017-02-24 21:43:05 UTC) #50
tommi
On 2017/02/24 21:43:05, tommi (webrtc) wrote: > Ignore frames from the past Magnus - can ...
3 years, 10 months ago (2017-02-24 22:47:53 UTC) #55
mflodman
On 2017/02/24 22:47:53, tommi (webrtc) wrote: > On 2017/02/24 21:43:05, tommi (webrtc) wrote: > > ...
3 years, 10 months ago (2017-02-25 17:10:42 UTC) #56
tommi
On 2017/02/25 17:10:42, mflodman wrote: > On 2017/02/24 22:47:53, tommi (webrtc) wrote: > > On ...
3 years, 10 months ago (2017-02-25 17:13:23 UTC) #57
mflodman
LGTM
3 years, 10 months ago (2017-02-25 17:16:42 UTC) #58
tommi
remove return statement and add TODO
3 years, 9 months ago (2017-02-27 11:23:32 UTC) #61
tommi
ugh, looks like a pebkac
3 years, 9 months ago (2017-02-27 11:26:50 UTC) #62
tommi
test pebkac again
3 years, 9 months ago (2017-02-27 11:57:12 UTC) #67
tommi
Remove DCHECK
3 years, 9 months ago (2017-02-27 12:02:29 UTC) #70
tommi
Print render_time_ms instead of timestamp
3 years, 9 months ago (2017-02-27 12:13:47 UTC) #71
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/2716473002/320001
3 years, 9 months ago (2017-02-27 12:16:28 UTC) #74
commit-bot: I haz the power
Committed patchset #10 (id:320001) as https://chromium.googlesource.com/external/webrtc/+/e2d1d6429557af4560a97581a5e282b54c742173
3 years, 9 months ago (2017-02-27 12:40:48 UTC) #77
tommi
3 years, 9 months ago (2017-02-27 13:10:29 UTC) #78
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:320001) has been created in
https://codereview.webrtc.org/2714393003/ by tommi@webrtc.org.

The reason for reverting is: Reverting while fixing build issue in Chromium..

Powered by Google App Engine
This is Rietveld 408576698