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

Side by Side Diff: webrtc/video/video_receive_stream.h

Issue 2997853002: Change ThreadChecker to SequencedTaskChecker in VideoReceiveStream (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | webrtc/video/video_receive_stream.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/call/rtp_packet_sink_interface.h" 17 #include "webrtc/call/rtp_packet_sink_interface.h"
18 #include "webrtc/call/syncable.h" 18 #include "webrtc/call/syncable.h"
19 #include "webrtc/common_video/include/incoming_video_stream.h" 19 #include "webrtc/common_video/include/incoming_video_stream.h"
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
21 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h" 21 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
22 #include "webrtc/modules/video_coding/frame_buffer2.h" 22 #include "webrtc/modules/video_coding/frame_buffer2.h"
23 #include "webrtc/modules/video_coding/video_coding_impl.h" 23 #include "webrtc/modules/video_coding/video_coding_impl.h"
24 #include "webrtc/rtc_base/thread_checker.h" 24 #include "webrtc/rtc_base/sequenced_task_checker.h"
25 #include "webrtc/system_wrappers/include/clock.h" 25 #include "webrtc/system_wrappers/include/clock.h"
26 #include "webrtc/video/receive_statistics_proxy.h" 26 #include "webrtc/video/receive_statistics_proxy.h"
27 #include "webrtc/video/rtp_streams_synchronizer.h" 27 #include "webrtc/video/rtp_streams_synchronizer.h"
28 #include "webrtc/video/rtp_video_stream_receiver.h" 28 #include "webrtc/video/rtp_video_stream_receiver.h"
29 #include "webrtc/video/transport_adapter.h" 29 #include "webrtc/video/transport_adapter.h"
30 #include "webrtc/video/video_stream_decoder.h" 30 #include "webrtc/video/video_stream_decoder.h"
31 #include "webrtc/video_receive_stream.h" 31 #include "webrtc/video_receive_stream.h"
32 32
33 namespace webrtc { 33 namespace webrtc {
34 34
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Implements Syncable. 111 // Implements Syncable.
112 int id() const override; 112 int id() const override;
113 rtc::Optional<Syncable::Info> GetInfo() const override; 113 rtc::Optional<Syncable::Info> GetInfo() const override;
114 uint32_t GetPlayoutTimestamp() const override; 114 uint32_t GetPlayoutTimestamp() const override;
115 void SetMinimumPlayoutDelay(int delay_ms) override; 115 void SetMinimumPlayoutDelay(int delay_ms) override;
116 116
117 private: 117 private:
118 static void DecodeThreadFunction(void* ptr); 118 static void DecodeThreadFunction(void* ptr);
119 bool Decode(); 119 bool Decode();
120 120
121 rtc::ThreadChecker worker_thread_checker_; 121 rtc::SequencedTaskChecker worker_sequence_checker_;
122 rtc::ThreadChecker module_process_thread_checker_; 122 rtc::SequencedTaskChecker module_process_sequence_checker_;
123 123
124 TransportAdapter transport_adapter_; 124 TransportAdapter transport_adapter_;
125 const VideoReceiveStream::Config config_; 125 const VideoReceiveStream::Config config_;
126 const int num_cpu_cores_; 126 const int num_cpu_cores_;
127 ProcessThread* const process_thread_; 127 ProcessThread* const process_thread_;
128 Clock* const clock_; 128 Clock* const clock_;
129 129
130 rtc::PlatformThread decode_thread_; 130 rtc::PlatformThread decode_thread_;
131 131
132 CallStats* const call_stats_; 132 CallStats* const call_stats_;
(...skipping 17 matching lines...) Expand all
150 std::unique_ptr<RtpStreamReceiverInterface> rtx_receiver_; 150 std::unique_ptr<RtpStreamReceiverInterface> rtx_receiver_;
151 151
152 // Whenever we are in an undecodable state (stream has just started or due to 152 // Whenever we are in an undecodable state (stream has just started or due to
153 // a decoding error) we require a keyframe to restart the stream. 153 // a decoding error) we require a keyframe to restart the stream.
154 bool keyframe_required_ = true; 154 bool keyframe_required_ = true;
155 }; 155 };
156 } // namespace internal 156 } // namespace internal
157 } // namespace webrtc 157 } // namespace webrtc
158 158
159 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 159 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698