Index: webrtc/test/frame_generator_capturer.cc |
diff --git a/webrtc/test/frame_generator_capturer.cc b/webrtc/test/frame_generator_capturer.cc |
index 73cc5aed725351d5fed26a97127b0c090b6f6f01..93102776640d3ed81a9cc9e05c46900113ecad73 100644 |
--- a/webrtc/test/frame_generator_capturer.cc |
+++ b/webrtc/test/frame_generator_capturer.cc |
@@ -114,6 +114,22 @@ FrameGeneratorCapturer* FrameGeneratorCapturer::CreateFromYuvFile( |
return capturer.release(); |
} |
+FrameGeneratorCapturer* FrameGeneratorCapturer::CreateSlideGenerator( |
+ int width, |
+ int height, |
erikvarga1
2017/08/29 15:26:41
Changed the width and height from size_t to int (l
|
+ int frame_repeat_count, |
+ int target_fps, |
+ Clock* clock) { |
+ std::unique_ptr<FrameGeneratorCapturer> capturer(new FrameGeneratorCapturer( |
+ clock, FrameGenerator::CreateSlideGenerator(width, height, |
+ frame_repeat_count), |
+ target_fps)); |
+ if (!capturer->Init()) |
+ return nullptr; |
+ |
+ return capturer.release(); |
+} |
+ |
FrameGeneratorCapturer::FrameGeneratorCapturer( |
Clock* clock, |
std::unique_ptr<FrameGenerator> frame_generator, |