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

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

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: rebase Created 3 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
« 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
312 void FakeVideoReceiveStream::Start() { 317 void FakeVideoReceiveStream::Start() {
313 receiving_ = true; 318 receiving_ = true;
314 } 319 }
315 320
316 void FakeVideoReceiveStream::Stop() { 321 void FakeVideoReceiveStream::Stop() {
317 receiving_ = false; 322 receiving_ = false;
318 } 323 }
319 324
320 void FakeVideoReceiveStream::SetStats( 325 void FakeVideoReceiveStream::SetStats(
321 const webrtc::VideoReceiveStream::Stats& stats) { 326 const webrtc::VideoReceiveStream::Stats& stats) {
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 } 631 }
627 632
628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 633 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
629 last_sent_packet_ = sent_packet; 634 last_sent_packet_ = sent_packet;
630 if (sent_packet.packet_id >= 0) { 635 if (sent_packet.packet_id >= 0) {
631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 636 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
632 } 637 }
633 } 638 }
634 639
635 } // namespace cricket 640 } // 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