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

Side by Side Diff: webrtc/modules/video_coding/video_coding_impl.cc

Issue 2119503002: Remove all old suspension logic. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 int32_t IntraFrameRequest(size_t stream_index) override { 147 int32_t IntraFrameRequest(size_t stream_index) override {
148 return sender_.IntraFrameRequest(stream_index); 148 return sender_.IntraFrameRequest(stream_index);
149 } 149 }
150 150
151 int32_t EnableFrameDropper(bool enable) override { 151 int32_t EnableFrameDropper(bool enable) override {
152 return sender_.EnableFrameDropper(enable); 152 return sender_.EnableFrameDropper(enable);
153 } 153 }
154 154
155 void SuspendBelowMinBitrate() override {
156 return sender_.SuspendBelowMinBitrate();
157 }
158
159 bool VideoSuspended() const override { return sender_.VideoSuspended(); }
160
161 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec, 155 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec,
162 int32_t numberOfCores, 156 int32_t numberOfCores,
163 bool requireKeyFrame) override { 157 bool requireKeyFrame) override {
164 return receiver_.RegisterReceiveCodec(receiveCodec, numberOfCores, 158 return receiver_.RegisterReceiveCodec(receiveCodec, numberOfCores,
165 requireKeyFrame); 159 requireKeyFrame);
166 } 160 }
167 161
168 void RegisterExternalDecoder(VideoDecoder* externalDecoder, 162 void RegisterExternalDecoder(VideoDecoder* externalDecoder,
169 uint8_t payloadType) override { 163 uint8_t payloadType) override {
170 receiver_.RegisterExternalDecoder(externalDecoder, payloadType); 164 receiver_.RegisterExternalDecoder(externalDecoder, payloadType);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 EventFactory* event_factory, 304 EventFactory* event_factory,
311 NackSender* nack_sender, 305 NackSender* nack_sender,
312 KeyFrameRequestSender* keyframe_request_sender) { 306 KeyFrameRequestSender* keyframe_request_sender) {
313 assert(clock); 307 assert(clock);
314 assert(event_factory); 308 assert(event_factory);
315 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nack_sender, 309 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nack_sender,
316 keyframe_request_sender, nullptr); 310 keyframe_request_sender, nullptr);
317 } 311 }
318 312
319 } // namespace webrtc 313 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_coding_impl.h ('k') | webrtc/modules/video_coding/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698