Removes unused factories and constructor from FrameGeneratorCapturer.
to remove dependency on GlobalTaskQueueFactory
Bug: webrtc:10284
Change-Id: I9a7e4431cd62df20bec706b0ffcc677bd3c7d311
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133903
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27718}
diff --git a/test/frame_generator_capturer.h b/test/frame_generator_capturer.h
index 52fdd8b..d6faf7c 100644
--- a/test/frame_generator_capturer.h
+++ b/test/frame_generator_capturer.h
@@ -39,33 +39,10 @@
virtual ~SinkWantsObserver() {}
};
- // |type| has the default value OutputType::I420. |num_squares| has the
- // default value 10.
- static FrameGeneratorCapturer* Create(
- int width,
- int height,
- absl::optional<FrameGenerator::OutputType> type,
- absl::optional<int> num_squares,
- int target_fps,
- Clock* clock);
-
- static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name,
- size_t width,
- size_t height,
- int target_fps,
- Clock* clock);
-
- static FrameGeneratorCapturer* CreateSlideGenerator(int width,
- int height,
- int frame_repeat_count,
- int target_fps,
- Clock* clock);
-
- static FrameGeneratorCapturer* Create(
- std::unique_ptr<FrameGenerator> frame_generator,
- int target_fps,
- Clock* clock);
-
+ FrameGeneratorCapturer(Clock* clock,
+ std::unique_ptr<FrameGenerator> frame_generator,
+ int target_fps,
+ TaskQueueFactory& task_queue_factory);
virtual ~FrameGeneratorCapturer();
void Start();
@@ -85,13 +62,6 @@
int64_t first_frame_capture_time() const { return first_frame_capture_time_; }
- FrameGeneratorCapturer(Clock* clock,
- std::unique_ptr<FrameGenerator> frame_generator,
- int target_fps);
- FrameGeneratorCapturer(Clock* clock,
- std::unique_ptr<FrameGenerator> frame_generator,
- int target_fps,
- TaskQueueFactory& task_queue_factory);
bool Init();
private: