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_ |
11 #define WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 11 #define WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/api/video/video_frame.h" | 16 #include "webrtc/api/video/video_frame.h" |
17 #include "webrtc/base/criticalsection.h" | 17 #include "webrtc/base/criticalsection.h" |
18 #include "webrtc/base/task_queue.h" | 18 #include "webrtc/base/task_queue.h" |
19 #include "webrtc/test/video_capturer.h" | 19 #include "webrtc/test/video_capturer.h" |
20 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class CriticalSectionWrapper; | |
25 class EventTimerWrapper; | 24 class EventTimerWrapper; |
26 | 25 |
27 namespace test { | 26 namespace test { |
28 | 27 |
29 class FrameGenerator; | 28 class FrameGenerator; |
30 | 29 |
31 class FrameGeneratorCapturer : public VideoCapturer { | 30 class FrameGeneratorCapturer : public VideoCapturer { |
32 public: | 31 public: |
33 class SinkWantsObserver { | 32 class SinkWantsObserver { |
34 public: | 33 public: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 91 |
93 int64_t first_frame_capture_time_; | 92 int64_t first_frame_capture_time_; |
94 // Must be the last field, so it will be deconstructed first as tasks | 93 // Must be the last field, so it will be deconstructed first as tasks |
95 // in the TaskQueue access other fields of the instance of this class. | 94 // in the TaskQueue access other fields of the instance of this class. |
96 rtc::TaskQueue task_queue_; | 95 rtc::TaskQueue task_queue_; |
97 }; | 96 }; |
98 } // namespace test | 97 } // namespace test |
99 } // namespace webrtc | 98 } // namespace webrtc |
100 | 99 |
101 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 100 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
OLD | NEW |