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

Unified Diff: webrtc/test/frame_generator_capturer.h

Issue 2743993002: Revert of rewrite frame generator capturer to use TaskQueue instead of EventTimeWrapper (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/call/call_perf_tests.cc ('k') | webrtc/test/frame_generator_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/frame_generator_capturer.h
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h
index fda16fc518479f6d3f084bf0a2ac182a9169e60a..dfd12711d187988560178bc90082b1e4788d472f 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/task_queue.h"
+#include "webrtc/base/platform_thread.h"
#include "webrtc/test/video_capturer.h"
#include "webrtc/typedefs.h"
@@ -74,8 +74,6 @@
bool Init();
private:
- class InsertFrameTask;
-
void InsertFrame();
static bool Run(void* obj);
@@ -84,8 +82,9 @@
rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(&lock_);
SinkWantsObserver* sink_wants_observer_ GUARDED_BY(&lock_);
- rtc::TaskQueue task_queue_;
+ std::unique_ptr<EventTimerWrapper> tick_;
rtc::CriticalSection lock_;
+ rtc::PlatformThread thread_;
std::unique_ptr<FrameGenerator> frame_generator_;
int target_fps_;
@@ -93,7 +92,7 @@
int64_t first_frame_capture_time_;
};
-} // namespace test
-} // namespace webrtc
+} // test
+} // webrtc
#endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_
« no previous file with comments | « webrtc/call/call_perf_tests.cc ('k') | webrtc/test/frame_generator_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698