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

Side by Side Diff: webrtc/modules/video_coding/video_coding_impl.cc

Issue 3010223002: Update thread annotiation macros in modules to use RTC_ prefix (Closed)
Patch Set: 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/modules/video_coding/video_coding_impl.h ('k') | no next file » | 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 rtc::CritScope lock(&cs_); 65 rtc::CritScope lock(&cs_);
66 if (callback_) { 66 if (callback_) {
67 return callback_->OnEncodedImage(encoded_image, codec_specific_info, 67 return callback_->OnEncodedImage(encoded_image, codec_specific_info,
68 fragmentation); 68 fragmentation);
69 } 69 }
70 return Result(Result::ERROR_SEND_FAILED); 70 return Result(Result::ERROR_SEND_FAILED);
71 } 71 }
72 72
73 private: 73 private:
74 rtc::CriticalSection cs_; 74 rtc::CriticalSection cs_;
75 EncodedImageCallback* callback_ GUARDED_BY(cs_); 75 EncodedImageCallback* callback_ RTC_GUARDED_BY(cs_);
76 }; 76 };
77 77
78 class VideoCodingModuleImpl : public VideoCodingModule { 78 class VideoCodingModuleImpl : public VideoCodingModule {
79 public: 79 public:
80 VideoCodingModuleImpl(Clock* clock, 80 VideoCodingModuleImpl(Clock* clock,
81 EventFactory* event_factory, 81 EventFactory* event_factory,
82 NackSender* nack_sender, 82 NackSender* nack_sender,
83 KeyFrameRequestSender* keyframe_request_sender, 83 KeyFrameRequestSender* keyframe_request_sender,
84 EncodedImageCallback* pre_decode_image_callback) 84 EncodedImageCallback* pre_decode_image_callback)
85 : VideoCodingModule(), 85 : VideoCodingModule(),
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // new jitter buffer is in place. 274 // new jitter buffer is in place.
275 VideoCodingModule* VideoCodingModule::Create(Clock* clock, 275 VideoCodingModule* VideoCodingModule::Create(Clock* clock,
276 EventFactory* event_factory) { 276 EventFactory* event_factory) {
277 RTC_DCHECK(clock); 277 RTC_DCHECK(clock);
278 RTC_DCHECK(event_factory); 278 RTC_DCHECK(event_factory);
279 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nullptr, 279 return new VideoCodingModuleImpl(clock, event_factory, nullptr, nullptr,
280 nullptr); 280 nullptr);
281 } 281 }
282 282
283 } // namespace webrtc 283 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_coding_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698