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 #ifndef WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 10 #ifndef WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 Clock* const clock_; | 80 Clock* const clock_; |
81 bool sending_; | 81 bool sending_; |
82 rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(&lock_); | 82 rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(&lock_); |
83 SinkWantsObserver* sink_wants_observer_ GUARDED_BY(&lock_); | 83 SinkWantsObserver* sink_wants_observer_ GUARDED_BY(&lock_); |
84 | 84 |
85 std::unique_ptr<EventTimerWrapper> tick_; | 85 std::unique_ptr<EventTimerWrapper> tick_; |
86 rtc::CriticalSection lock_; | 86 rtc::CriticalSection lock_; |
87 rtc::PlatformThread thread_; | 87 rtc::PlatformThread thread_; |
88 std::unique_ptr<FrameGenerator> frame_generator_; | 88 std::unique_ptr<FrameGenerator> frame_generator_; |
89 | 89 |
90 int target_fps_; | 90 int target_fps_ GUARDED_BY(&lock_); |
| 91 rtc::Optional<int> wanted_fps_ GUARDED_BY(&lock_); |
91 VideoRotation fake_rotation_ = kVideoRotation_0; | 92 VideoRotation fake_rotation_ = kVideoRotation_0; |
92 | 93 |
93 int64_t first_frame_capture_time_; | 94 int64_t first_frame_capture_time_; |
94 }; | 95 }; |
95 } // test | 96 } // test |
96 } // webrtc | 97 } // webrtc |
97 | 98 |
98 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 99 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
OLD | NEW |