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

Side by Side Diff: webrtc/video/overuse_frame_detector.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/video/end_to_end_tests.cc ('k') | webrtc/video/payload_router.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) 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
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 CheckOveruseTask* check_overuse_task_; 126 CheckOveruseTask* check_overuse_task_;
127 127
128 const CpuOveruseOptions options_; 128 const CpuOveruseOptions options_;
129 129
130 // Observer getting overuse reports. 130 // Observer getting overuse reports.
131 AdaptationObserverInterface* const observer_; 131 AdaptationObserverInterface* const observer_;
132 EncodedFrameObserver* const encoder_timing_; 132 EncodedFrameObserver* const encoder_timing_;
133 133
134 // Stats metrics. 134 // Stats metrics.
135 CpuOveruseMetricsObserver* const metrics_observer_; 135 CpuOveruseMetricsObserver* const metrics_observer_;
136 rtc::Optional<CpuOveruseMetrics> metrics_ GUARDED_BY(task_checker_); 136 rtc::Optional<CpuOveruseMetrics> metrics_ RTC_GUARDED_BY(task_checker_);
137 137
138 int64_t num_process_times_ GUARDED_BY(task_checker_); 138 int64_t num_process_times_ RTC_GUARDED_BY(task_checker_);
139 139
140 int64_t last_capture_time_us_ GUARDED_BY(task_checker_); 140 int64_t last_capture_time_us_ RTC_GUARDED_BY(task_checker_);
141 int64_t last_processed_capture_time_us_ GUARDED_BY(task_checker_); 141 int64_t last_processed_capture_time_us_ RTC_GUARDED_BY(task_checker_);
142 142
143 // Number of pixels of last captured frame. 143 // Number of pixels of last captured frame.
144 int num_pixels_ GUARDED_BY(task_checker_); 144 int num_pixels_ RTC_GUARDED_BY(task_checker_);
145 int max_framerate_ GUARDED_BY(task_checker_); 145 int max_framerate_ RTC_GUARDED_BY(task_checker_);
146 int64_t last_overuse_time_ms_ GUARDED_BY(task_checker_); 146 int64_t last_overuse_time_ms_ RTC_GUARDED_BY(task_checker_);
147 int checks_above_threshold_ GUARDED_BY(task_checker_); 147 int checks_above_threshold_ RTC_GUARDED_BY(task_checker_);
148 int num_overuse_detections_ GUARDED_BY(task_checker_); 148 int num_overuse_detections_ RTC_GUARDED_BY(task_checker_);
149 int64_t last_rampup_time_ms_ GUARDED_BY(task_checker_); 149 int64_t last_rampup_time_ms_ RTC_GUARDED_BY(task_checker_);
150 bool in_quick_rampup_ GUARDED_BY(task_checker_); 150 bool in_quick_rampup_ RTC_GUARDED_BY(task_checker_);
151 int current_rampup_delay_ms_ GUARDED_BY(task_checker_); 151 int current_rampup_delay_ms_ RTC_GUARDED_BY(task_checker_);
152 152
153 // TODO(asapersson): Can these be regular members (avoid separate heap 153 // TODO(asapersson): Can these be regular members (avoid separate heap
154 // allocs)? 154 // allocs)?
155 const std::unique_ptr<SendProcessingUsage> usage_ GUARDED_BY(task_checker_); 155 const std::unique_ptr<SendProcessingUsage> usage_
156 std::list<FrameTiming> frame_timing_ GUARDED_BY(task_checker_); 156 RTC_GUARDED_BY(task_checker_);
157 std::list<FrameTiming> frame_timing_ RTC_GUARDED_BY(task_checker_);
157 158
158 RTC_DISALLOW_COPY_AND_ASSIGN(OveruseFrameDetector); 159 RTC_DISALLOW_COPY_AND_ASSIGN(OveruseFrameDetector);
159 }; 160 };
160 161
161 } // namespace webrtc 162 } // namespace webrtc
162 163
163 #endif // WEBRTC_VIDEO_OVERUSE_FRAME_DETECTOR_H_ 164 #endif // WEBRTC_VIDEO_OVERUSE_FRAME_DETECTOR_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/payload_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698