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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 1823503002: Reland Use CopyOnWriteBuffer instead of Buffer to avoid unnecessary copies. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool AddSendStream(const StreamParams& sp) override; 156 bool AddSendStream(const StreamParams& sp) override;
157 bool RemoveSendStream(uint32_t ssrc) override; 157 bool RemoveSendStream(uint32_t ssrc) override;
158 bool AddRecvStream(const StreamParams& sp) override; 158 bool AddRecvStream(const StreamParams& sp) override;
159 bool AddRecvStream(const StreamParams& sp, bool default_stream); 159 bool AddRecvStream(const StreamParams& sp, bool default_stream);
160 bool RemoveRecvStream(uint32_t ssrc) override; 160 bool RemoveRecvStream(uint32_t ssrc) override;
161 bool SetSink(uint32_t ssrc, 161 bool SetSink(uint32_t ssrc,
162 rtc::VideoSinkInterface<VideoFrame>* sink) override; 162 rtc::VideoSinkInterface<VideoFrame>* sink) override;
163 bool GetStats(VideoMediaInfo* info) override; 163 bool GetStats(VideoMediaInfo* info) override;
164 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) override; 164 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) override;
165 165
166 void OnPacketReceived(rtc::Buffer* packet, 166 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
167 const rtc::PacketTime& packet_time) override; 167 const rtc::PacketTime& packet_time) override;
168 void OnRtcpReceived(rtc::Buffer* packet, 168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
169 const rtc::PacketTime& packet_time) override; 169 const rtc::PacketTime& packet_time) override;
170 void OnReadyToSend(bool ready) override; 170 void OnReadyToSend(bool ready) override;
171 void SetInterface(NetworkInterface* iface) override; 171 void SetInterface(NetworkInterface* iface) override;
172 172
173 // Implemented for VideoMediaChannelTest. 173 // Implemented for VideoMediaChannelTest.
174 bool sending() const { return sending_; } 174 bool sending() const { return sending_; }
175 uint32_t GetDefaultSendChannelSsrc() { return default_send_ssrc_; } 175 uint32_t GetDefaultSendChannelSsrc() { return default_send_ssrc_; }
176 176
177 private: 177 private:
178 class WebRtcVideoReceiveStream; 178 class WebRtcVideoReceiveStream;
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // TODO(deadbeef): Don't duplicate information between 532 // TODO(deadbeef): Don't duplicate information between
533 // send_params/recv_params, rtp_extensions, options, etc. 533 // send_params/recv_params, rtp_extensions, options, etc.
534 VideoSendParameters send_params_; 534 VideoSendParameters send_params_;
535 VideoOptions default_send_options_; 535 VideoOptions default_send_options_;
536 VideoRecvParameters recv_params_; 536 VideoRecvParameters recv_params_;
537 }; 537 };
538 538
539 } // namespace cricket 539 } // namespace cricket
540 540
541 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 541 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698