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 2335923002: Add WebrtcCaptureScheduler interface. (Closed)

Created:
4 years, 3 months ago by Sergey Ulanov
Modified:
4 years, 3 months ago
Reviewers:
Irfan
CC:
chromium-reviews, posciak+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WebrtcFrameScheduler interface. WebrtcFrameScheduler is used by WebrtcVideoStream to schedule video frames. WebrtcFrameScheduler implementations now are also responsible for top-off logic that previously resided in WebrtcVideoCapturerVpx. This will allow to switch between different frame scheduling strategies in runtime. WebrtcFrameSchedulerSimple implements the old scheduling logic with the following two exceptions: - VPX active map is cleaned only after top-off is finished (top-off wasn't always working properly due to this issue). - Removed min limit for FPS. In the future WebrtcFrameSchedulerSimple will need to be replaced with a new scheduler that allows processing multiple frames in parallel. BUG=645656 Committed: https://crrev.com/0eaa5139dbab93ed41deefc56633d1ee19f0b832 Cr-Commit-Position: refs/heads/master@{#419632}

Patch Set 1 #

Total comments: 15

Patch Set 2 : address feedback #

Patch Set 3 : FrameScheduler #

Patch Set 4 : include <algorithm> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -192 lines) Patch
M remoting/codec/webrtc_video_encoder.h View 1 1 chunk +18 lines, -2 lines 0 comments Download
M remoting/codec/webrtc_video_encoder_vpx.h View 3 chunks +5 lines, -6 lines 0 comments Download
M remoting/codec/webrtc_video_encoder_vpx.cc View 1 12 chunks +46 lines, -46 lines 0 comments Download
M remoting/protocol/BUILD.gn View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_dummy_video_encoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/webrtc_dummy_video_encoder.cc View 3 chunks +8 lines, -8 lines 0 comments Download
A remoting/protocol/webrtc_frame_scheduler.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A remoting/protocol/webrtc_frame_scheduler_simple.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A remoting/protocol/webrtc_frame_scheduler_simple.cc View 1 2 3 1 chunk +127 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_video_stream.h View 1 2 5 chunks +4 lines, -17 lines 0 comments Download
M remoting/protocol/webrtc_video_stream.cc View 1 2 7 chunks +52 lines, -111 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
Sergey Ulanov
4 years, 3 months ago (2016-09-12 23:50:43 UTC) #9
Irfan
https://codereview.chromium.org/2335923002/diff/80001/remoting/codec/webrtc_video_encoder.h File remoting/codec/webrtc_video_encoder.h (right): https://codereview.chromium.org/2335923002/diff/80001/remoting/codec/webrtc_video_encoder.h#newcode28 remoting/codec/webrtc_video_encoder.h:28: bool clear_active_map = false; would be good to document ...
4 years, 3 months ago (2016-09-14 20:01:30 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/2335923002/diff/80001/remoting/codec/webrtc_video_encoder.h File remoting/codec/webrtc_video_encoder.h (right): https://codereview.chromium.org/2335923002/diff/80001/remoting/codec/webrtc_video_encoder.h#newcode28 remoting/codec/webrtc_video_encoder.h:28: bool clear_active_map = false; On 2016/09/14 20:01:29, Irfan wrote: ...
4 years, 3 months ago (2016-09-16 00:02:48 UTC) #11
Irfan
https://codereview.chromium.org/2335923002/diff/80001/remoting/protocol/webrtc_capture_scheduler.h File remoting/protocol/webrtc_capture_scheduler.h (right): https://codereview.chromium.org/2335923002/diff/80001/remoting/protocol/webrtc_capture_scheduler.h#newcode37 remoting/protocol/webrtc_capture_scheduler.h:37: virtual bool GetEncoderFrameParams( On 2016/09/16 00:02:47, Sergey Ulanov wrote: ...
4 years, 3 months ago (2016-09-16 17:21:19 UTC) #12
Sergey Ulanov
On 2016/09/16 17:21:19, Irfan wrote: > https://codereview.chromium.org/2335923002/diff/80001/remoting/protocol/webrtc_capture_scheduler.h > File remoting/protocol/webrtc_capture_scheduler.h (right): > > https://codereview.chromium.org/2335923002/diff/80001/remoting/protocol/webrtc_capture_scheduler.h#newcode37 > ...
4 years, 3 months ago (2016-09-19 20:18:53 UTC) #13
Irfan
lgtm codereview does not do a good job of telling me its just file rename
4 years, 3 months ago (2016-09-19 20:22:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2335923002/120001
4 years, 3 months ago (2016-09-19 21:06:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/144053)
4 years, 3 months ago (2016-09-19 21:46:13 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.chromium.org/2335923002/140001
4 years, 3 months ago (2016-09-19 22:25:12 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 3 months ago (2016-09-20 01:40:30 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 01:43:55 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0eaa5139dbab93ed41deefc56633d1ee19f0b832
Cr-Commit-Position: refs/heads/master@{#419632}

Powered by Google App Engine
This is Rietveld 408576698