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

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

Issue 3008983002: Change reporting of timing frames conditions in GetStats on receive side (Closed)
Patch Set: Implement Tommi@ comments Created 3 years, 3 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
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvideoengine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 302 }
303 303
304 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) { 304 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) {
305 config_.renderer->OnFrame(frame); 305 config_.renderer->OnFrame(frame);
306 } 306 }
307 307
308 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const { 308 webrtc::VideoReceiveStream::Stats FakeVideoReceiveStream::GetStats() const {
309 return stats_; 309 return stats_;
310 } 310 }
311 311
312 rtc::Optional<webrtc::TimingFrameInfo>
313 FakeVideoReceiveStream::GetAndResetTimingFrameInfo() {
314 return rtc::Optional<webrtc::TimingFrameInfo>();
315 }
316
317 void FakeVideoReceiveStream::Start() { 312 void FakeVideoReceiveStream::Start() {
318 receiving_ = true; 313 receiving_ = true;
319 } 314 }
320 315
321 void FakeVideoReceiveStream::Stop() { 316 void FakeVideoReceiveStream::Stop() {
322 receiving_ = false; 317 receiving_ = false;
323 } 318 }
324 319
325 void FakeVideoReceiveStream::SetStats( 320 void FakeVideoReceiveStream::SetStats(
326 const webrtc::VideoReceiveStream::Stats& stats) { 321 const webrtc::VideoReceiveStream::Stats& stats) {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 } 628 }
634 629
635 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 630 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
636 last_sent_packet_ = sent_packet; 631 last_sent_packet_ = sent_packet;
637 if (sent_packet.packet_id >= 0) { 632 if (sent_packet.packet_id >= 0) {
638 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 633 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
639 } 634 }
640 } 635 }
641 636
642 } // namespace cricket 637 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvideoengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698