| OLD | NEW |
| 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_ENGINE_OVERUSE_FRAME_DETECTOR_H_ | 11 #ifndef WEBRTC_VIDEO_ENGINE_OVERUSE_FRAME_DETECTOR_H_ |
| 12 #define WEBRTC_VIDEO_ENGINE_OVERUSE_FRAME_DETECTOR_H_ | 12 #define WEBRTC_VIDEO_ENGINE_OVERUSE_FRAME_DETECTOR_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/constructormagic.h" | 14 #include "webrtc/base/constructormagic.h" |
| 15 #include "webrtc/base/criticalsection.h" | 15 #include "webrtc/base/criticalsection.h" |
| 16 #include "webrtc/base/scoped_ptr.h" | 16 #include "webrtc/base/scoped_ptr.h" |
| 17 #include "webrtc/base/exp_filter.h" | 17 #include "webrtc/base/exp_filter.h" |
| 18 #include "webrtc/base/thread_annotations.h" | 18 #include "webrtc/base/thread_annotations.h" |
| 19 #include "webrtc/base/thread_checker.h" | 19 #include "webrtc/base/thread_checker.h" |
| 20 #include "webrtc/modules/interface/module.h" | 20 #include "webrtc/modules/include/module.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 class Clock; | 24 class Clock; |
| 25 | 25 |
| 26 // CpuOveruseObserver is called when a system overuse is detected and | 26 // CpuOveruseObserver is called when a system overuse is detected and |
| 27 // VideoEngine cannot keep up the encoding frequency. | 27 // VideoEngine cannot keep up the encoding frequency. |
| 28 class CpuOveruseObserver { | 28 class CpuOveruseObserver { |
| 29 public: | 29 public: |
| 30 // Called as soon as an overuse is detected. | 30 // Called as soon as an overuse is detected. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 const rtc::scoped_ptr<FrameQueue> frame_queue_ GUARDED_BY(crit_); | 172 const rtc::scoped_ptr<FrameQueue> frame_queue_ GUARDED_BY(crit_); |
| 173 | 173 |
| 174 rtc::ThreadChecker processing_thread_; | 174 rtc::ThreadChecker processing_thread_; |
| 175 | 175 |
| 176 RTC_DISALLOW_COPY_AND_ASSIGN(OveruseFrameDetector); | 176 RTC_DISALLOW_COPY_AND_ASSIGN(OveruseFrameDetector); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace webrtc | 179 } // namespace webrtc |
| 180 | 180 |
| 181 #endif // WEBRTC_VIDEO_ENGINE_OVERUSE_FRAME_DETECTOR_H_ | 181 #endif // WEBRTC_VIDEO_ENGINE_OVERUSE_FRAME_DETECTOR_H_ |
| OLD | NEW |