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

Side by Side Diff: webrtc/pc/channel.cc

Issue 2487633002: Reland of Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: Rebase, and update rtcstatscollector_unittest.cc. Created 4 years, 1 month 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/pc/channel.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCVideoFrame+Private.h » ('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 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2004 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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 VideoChannel::~VideoChannel() { 1901 VideoChannel::~VideoChannel() {
1902 TRACE_EVENT0("webrtc", "VideoChannel::~VideoChannel"); 1902 TRACE_EVENT0("webrtc", "VideoChannel::~VideoChannel");
1903 StopMediaMonitor(); 1903 StopMediaMonitor();
1904 // this can't be done in the base class, since it calls a virtual 1904 // this can't be done in the base class, since it calls a virtual
1905 DisableMedia_w(); 1905 DisableMedia_w();
1906 1906
1907 Deinit(); 1907 Deinit();
1908 } 1908 }
1909 1909
1910 bool VideoChannel::SetSink(uint32_t ssrc, 1910 bool VideoChannel::SetSink(uint32_t ssrc,
1911 rtc::VideoSinkInterface<VideoFrame>* sink) { 1911 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) {
1912 worker_thread()->Invoke<void>( 1912 worker_thread()->Invoke<void>(
1913 RTC_FROM_HERE, 1913 RTC_FROM_HERE,
1914 Bind(&VideoMediaChannel::SetSink, media_channel(), ssrc, sink)); 1914 Bind(&VideoMediaChannel::SetSink, media_channel(), ssrc, sink));
1915 return true; 1915 return true;
1916 } 1916 }
1917 1917
1918 bool VideoChannel::SetVideoSend( 1918 bool VideoChannel::SetVideoSend(
1919 uint32_t ssrc, 1919 uint32_t ssrc,
1920 bool mute, 1920 bool mute,
1921 const VideoOptions* options, 1921 const VideoOptions* options,
1922 rtc::VideoSourceInterface<cricket::VideoFrame>* source) { 1922 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) {
1923 return InvokeOnWorker(RTC_FROM_HERE, 1923 return InvokeOnWorker(RTC_FROM_HERE,
1924 Bind(&VideoMediaChannel::SetVideoSend, media_channel(), 1924 Bind(&VideoMediaChannel::SetVideoSend, media_channel(),
1925 ssrc, mute, options, source)); 1925 ssrc, mute, options, source));
1926 } 1926 }
1927 1927
1928 webrtc::RtpParameters VideoChannel::GetRtpSendParameters(uint32_t ssrc) const { 1928 webrtc::RtpParameters VideoChannel::GetRtpSendParameters(uint32_t ssrc) const {
1929 return worker_thread()->Invoke<webrtc::RtpParameters>( 1929 return worker_thread()->Invoke<webrtc::RtpParameters>(
1930 RTC_FROM_HERE, Bind(&VideoChannel::GetRtpSendParameters_w, this, ssrc)); 1930 RTC_FROM_HERE, Bind(&VideoChannel::GetRtpSendParameters_w, this, ssrc));
1931 } 1931 }
1932 1932
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 } 2457 }
2458 2458
2459 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { 2459 void DataChannel::OnStreamClosedRemotely(uint32_t sid) {
2460 rtc::TypedMessageData<uint32_t>* message = 2460 rtc::TypedMessageData<uint32_t>* message =
2461 new rtc::TypedMessageData<uint32_t>(sid); 2461 new rtc::TypedMessageData<uint32_t>(sid);
2462 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_STREAMCLOSEDREMOTELY, 2462 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_STREAMCLOSEDREMOTELY,
2463 message); 2463 message);
2464 } 2464 }
2465 2465
2466 } // namespace cricket 2466 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/pc/channel.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCVideoFrame+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698