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

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

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 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/base/videocapturer.h ('k') | webrtc/media/engine/webrtcvideoengine.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 (c) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 int GetNumEncodedFrames() { 167 int GetNumEncodedFrames() {
168 rtc::CritScope lock(&crit_); 168 rtc::CritScope lock(&crit_);
169 return num_frames_encoded_; 169 return num_frames_encoded_;
170 } 170 }
171 171
172 private: 172 private:
173 rtc::CriticalSection crit_; 173 rtc::CriticalSection crit_;
174 rtc::Event init_encode_event_; 174 rtc::Event init_encode_event_;
175 int num_frames_encoded_ GUARDED_BY(crit_); 175 int num_frames_encoded_ RTC_GUARDED_BY(crit_);
176 webrtc::VideoCodec codec_settings_ GUARDED_BY(crit_); 176 webrtc::VideoCodec codec_settings_ RTC_GUARDED_BY(crit_);
177 }; 177 };
178 178
179 // Fake class for mocking out WebRtcVideoEncoderFactory. 179 // Fake class for mocking out WebRtcVideoEncoderFactory.
180 class FakeWebRtcVideoEncoderFactory : public WebRtcVideoEncoderFactory { 180 class FakeWebRtcVideoEncoderFactory : public WebRtcVideoEncoderFactory {
181 public: 181 public:
182 FakeWebRtcVideoEncoderFactory() 182 FakeWebRtcVideoEncoderFactory()
183 : created_video_encoder_event_(false, false), 183 : created_video_encoder_event_(false, false),
184 num_created_encoders_(0), 184 num_created_encoders_(0),
185 encoders_have_internal_sources_(false) {} 185 encoders_have_internal_sources_(false) {}
186 186
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 const std::vector<FakeWebRtcVideoEncoder*> encoders() { 244 const std::vector<FakeWebRtcVideoEncoder*> encoders() {
245 rtc::CritScope lock(&crit_); 245 rtc::CritScope lock(&crit_);
246 return encoders_; 246 return encoders_;
247 } 247 }
248 248
249 private: 249 private:
250 rtc::CriticalSection crit_; 250 rtc::CriticalSection crit_;
251 rtc::Event created_video_encoder_event_; 251 rtc::Event created_video_encoder_event_;
252 std::vector<cricket::VideoCodec> codecs_; 252 std::vector<cricket::VideoCodec> codecs_;
253 std::vector<FakeWebRtcVideoEncoder*> encoders_ GUARDED_BY(crit_); 253 std::vector<FakeWebRtcVideoEncoder*> encoders_ RTC_GUARDED_BY(crit_);
254 int num_created_encoders_ GUARDED_BY(crit_); 254 int num_created_encoders_ RTC_GUARDED_BY(crit_);
255 bool encoders_have_internal_sources_; 255 bool encoders_have_internal_sources_;
256 }; 256 };
257 257
258 } // namespace cricket 258 } // namespace cricket
259 259
260 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOENGINE_H_ 260 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videocapturer.h ('k') | webrtc/media/engine/webrtcvideoengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698