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

Issue 2302473002: FrameBuffer::NextFrame now return pair<frame, reason>. (Closed)

Created:
4 years, 3 months ago by philipel
Modified:
4 years, 3 months ago
Reviewers:
danilchap, mflodman
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

FrameBuffer::NextFrame now return a ReturnReason and take an additional std::unique_ptr<FrameObject>* as output parameter. In order to distinguish between a return caused by the FrameBuffer being stopped and a return caused by a timeout we now return a ReturnReason. BUG=webrtc:5514 R=danilchap@webrtc.org, mflodman@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/7556282a6ce98f243b52d4db436f162e93e69abb

Patch Set 1 #

Patch Set 2 : Comment fix. #

Total comments: 3

Patch Set 3 : Return pair<reason, frame> instead of optional. #

Total comments: 7

Patch Set 4 : Feedback fixes. #

Total comments: 2

Patch Set 5 : Frame as output paramter. #

Patch Set 6 : Comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M webrtc/modules/video_coding/frame_buffer2.h View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/frame_buffer2.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/frame_buffer2_unittest.cc View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
philipel
4 years, 3 months ago (2016-08-31 13:59:03 UTC) #2
danilchap
https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h#newcode53 webrtc/modules/video_coding/frame_buffer2.h:53: // - If the FrameBuffer is stopped then it ...
4 years, 3 months ago (2016-08-31 15:04:36 UTC) #3
philipel
https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h#newcode53 webrtc/modules/video_coding/frame_buffer2.h:53: // - If the FrameBuffer is stopped then it ...
4 years, 3 months ago (2016-09-01 09:25:23 UTC) #4
danilchap
https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/20001/webrtc/modules/video_coding/frame_buffer2.h#newcode53 webrtc/modules/video_coding/frame_buffer2.h:53: // - If the FrameBuffer is stopped then it ...
4 years, 3 months ago (2016-09-01 09:44:09 UTC) #5
philipel
4 years, 3 months ago (2016-09-01 10:40:36 UTC) #7
danilchap
looks more clear to me now. just some style/name comments now. (and update CL title) ...
4 years, 3 months ago (2016-09-01 11:15:21 UTC) #8
philipel
https://codereview.webrtc.org/2302473002/diff/40001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/40001/webrtc/modules/video_coding/frame_buffer2.h#newcode23 webrtc/modules/video_coding/frame_buffer2.h:23: #include "webrtc/base/optional.h" On 2016/09/01 11:15:21, danilchap wrote: > not ...
4 years, 3 months ago (2016-09-01 11:38:03 UTC) #10
danilchap
lgtm
4 years, 3 months ago (2016-09-01 12:11:27 UTC) #11
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/2302473002/60001
4 years, 3 months ago (2016-09-01 12:35:22 UTC) #13
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/7950)
4 years, 3 months ago (2016-09-01 13:03:17 UTC) #15
mflodman
https://codereview.webrtc.org/2302473002/diff/60001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/60001/webrtc/modules/video_coding/frame_buffer2.h#newcode60 webrtc/modules/video_coding/frame_buffer2.h:60: std::pair<std::unique_ptr<FrameObject>, ReturnReason> I'm not a big fan of returning ...
4 years, 3 months ago (2016-09-02 12:05:57 UTC) #16
philipel
https://codereview.webrtc.org/2302473002/diff/60001/webrtc/modules/video_coding/frame_buffer2.h File webrtc/modules/video_coding/frame_buffer2.h (right): https://codereview.webrtc.org/2302473002/diff/60001/webrtc/modules/video_coding/frame_buffer2.h#newcode60 webrtc/modules/video_coding/frame_buffer2.h:60: std::pair<std::unique_ptr<FrameObject>, ReturnReason> On 2016/09/02 12:05:57, mflodman wrote: > I'm ...
4 years, 3 months ago (2016-09-02 12:41:31 UTC) #18
mflodman
LGTM
4 years, 3 months ago (2016-09-02 12:46:49 UTC) #19
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/2302473002/100001
4 years, 3 months ago (2016-09-02 12:47:26 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
4 years, 3 months ago (2016-09-02 14:47:50 UTC) #24
philipel
Committed patchset #6 (id:100001) manually as 7556282a6ce98f243b52d4db436f162e93e69abb (presubmit successful).
4 years, 3 months ago (2016-09-05 08:58:01 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 08:58:01 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7556282a6ce98f243b52d4db436f162e93e69abb
Cr-Commit-Position: refs/heads/master@{#14065}

Powered by Google App Engine
This is Rietveld 408576698