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

Side by Side Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 1814763002: Cleanup of webrtc::VideoRenderer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use a more specific DEPS rule. Created 4 years, 9 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 196
197 webrtc::VideoReceiveStream::Config FakeVideoReceiveStream::GetConfig() { 197 webrtc::VideoReceiveStream::Config FakeVideoReceiveStream::GetConfig() {
198 return config_; 198 return config_;
199 } 199 }
200 200
201 bool FakeVideoReceiveStream::IsReceiving() const { 201 bool FakeVideoReceiveStream::IsReceiving() const {
202 return receiving_; 202 return receiving_;
203 } 203 }
204 204
205 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame, 205 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) {
206 int time_to_render_ms) { 206 config_.renderer->OnFrame(frame);
207 config_.renderer->RenderFrame(frame, time_to_render_ms);
208 } 207 }
209 208
210 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const { 209 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const {
211 return stats_; 210 return stats_;
212 } 211 }
213 212
214 void FakeVideoReceiveStream::Start() { 213 void FakeVideoReceiveStream::Start() {
215 receiving_ = true; 214 receiving_ = true;
216 } 215 }
217 216
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 } 415 }
417 416
418 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { 417 void FakeCall::SignalNetworkState(webrtc::NetworkState state) {
419 network_state_ = state; 418 network_state_ = state;
420 } 419 }
421 420
422 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 421 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
423 last_sent_packet_ = sent_packet; 422 last_sent_packet_ = sent_packet;
424 } 423 }
425 } // namespace cricket 424 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698