Index: webrtc/test/frame_generator_capturer.h |
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h |
index dfd12711d187988560178bc90082b1e4788d472f..fda16fc518479f6d3f084bf0a2ac182a9169e60a 100644 |
--- a/webrtc/test/frame_generator_capturer.h |
+++ b/webrtc/test/frame_generator_capturer.h |
@@ -15,7 +15,7 @@ |
#include "webrtc/api/video/video_frame.h" |
#include "webrtc/base/criticalsection.h" |
-#include "webrtc/base/platform_thread.h" |
+#include "webrtc/base/task_queue.h" |
#include "webrtc/test/video_capturer.h" |
#include "webrtc/typedefs.h" |
@@ -74,6 +74,8 @@ class FrameGeneratorCapturer : public VideoCapturer { |
bool Init(); |
private: |
+ class InsertFrameTask; |
+ |
void InsertFrame(); |
static bool Run(void* obj); |
@@ -82,9 +84,8 @@ class FrameGeneratorCapturer : public VideoCapturer { |
rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(&lock_); |
SinkWantsObserver* sink_wants_observer_ GUARDED_BY(&lock_); |
- std::unique_ptr<EventTimerWrapper> tick_; |
+ rtc::TaskQueue task_queue_; |
rtc::CriticalSection lock_; |
- rtc::PlatformThread thread_; |
std::unique_ptr<FrameGenerator> frame_generator_; |
int target_fps_; |
@@ -92,7 +93,7 @@ class FrameGeneratorCapturer : public VideoCapturer { |
int64_t first_frame_capture_time_; |
}; |
-} // test |
-} // webrtc |
+} // namespace test |
+} // namespace webrtc |
#endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |