Replace test::FrameGenerator::ChromaGenerator with new FrameGenerator::SquareGenerator The problem with the ChromaGenerator is that the VP8 encoder produce a too low bitrate for each frame. The squaregenerator make the VP8 encoder produce about 600kbit/s at VGA.

SquareGenerator is a FrameGenerator that draws 10 randomly sized and colored
squares. Between each new generated frame, the squares are moved slightly
towards the lower right corner.

BUG=webrtc:7192

Review-Url: https://codereview.webrtc.org/2705973002
Cr-Commit-Position: refs/heads/master@{#16870}
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h
index 3a1b6c9..dfd1271 100644
--- a/webrtc/test/frame_generator_capturer.h
+++ b/webrtc/test/frame_generator_capturer.h
@@ -41,8 +41,8 @@
     virtual ~SinkWantsObserver() {}
   };
 
-  static FrameGeneratorCapturer* Create(size_t width,
-                                        size_t height,
+  static FrameGeneratorCapturer* Create(int width,
+                                        int height,
                                         int target_fps,
                                         Clock* clock);
 
@@ -69,7 +69,7 @@
   int64_t first_frame_capture_time() const { return first_frame_capture_time_; }
 
   FrameGeneratorCapturer(Clock* clock,
-                         FrameGenerator* frame_generator,
+                         std::unique_ptr<FrameGenerator> frame_generator,
                          int target_fps);
   bool Init();