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

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

Issue 1225153002: Let WebRtcVideoChannel2::WebRtcVideoSendStream::InputFrame carry the input frame's timestamp to out… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove SendStream after unit test Created 5 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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 int FakeVideoSendStream::GetLastWidth() const { 106 int FakeVideoSendStream::GetLastWidth() const {
107 return last_frame_.width(); 107 return last_frame_.width();
108 } 108 }
109 109
110 int FakeVideoSendStream::GetLastHeight() const { 110 int FakeVideoSendStream::GetLastHeight() const {
111 return last_frame_.height(); 111 return last_frame_.height();
112 } 112 }
113 113
114 int64_t FakeVideoSendStream::GetLastTimestamp() const {
115 DCHECK(last_frame_.ntp_time_ms() == 0);
116 return last_frame_.render_time_ms();
117 }
118
114 void FakeVideoSendStream::IncomingCapturedFrame( 119 void FakeVideoSendStream::IncomingCapturedFrame(
115 const webrtc::VideoFrame& frame) { 120 const webrtc::VideoFrame& frame) {
116 ++num_swapped_frames_; 121 ++num_swapped_frames_;
117 last_frame_.ShallowCopy(frame); 122 last_frame_.ShallowCopy(frame);
118 } 123 }
119 124
120 void FakeVideoSendStream::SetStats( 125 void FakeVideoSendStream::SetStats(
121 const webrtc::VideoSendStream::Stats& stats) { 126 const webrtc::VideoSendStream::Stats& stats) {
122 stats_ = stats; 127 stats_ = stats;
123 } 128 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 358
354 void FakeCall::SetBitrateConfig( 359 void FakeCall::SetBitrateConfig(
355 const webrtc::Call::Config::BitrateConfig& bitrate_config) { 360 const webrtc::Call::Config::BitrateConfig& bitrate_config) {
356 config_.bitrate_config = bitrate_config; 361 config_.bitrate_config = bitrate_config;
357 } 362 }
358 363
359 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) { 364 void FakeCall::SignalNetworkState(webrtc::Call::NetworkState state) {
360 network_state_ = state; 365 network_state_ = state;
361 } 366 }
362 } // namespace cricket 367 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698