Index: webrtc/test/frame_generator_capturer.h |
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h |
index 75e48497bec35c65fa5a746e57e619c570c78b79..833fa90d00fd34f51f366631a55eca386ad6d23b 100644 |
--- a/webrtc/test/frame_generator_capturer.h |
+++ b/webrtc/test/frame_generator_capturer.h |
@@ -14,6 +14,7 @@ |
#include <string> |
#include "webrtc/api/video/video_frame.h" |
+#include "webrtc/api/video/video_content_type.h" |
#include "webrtc/base/criticalsection.h" |
#include "webrtc/base/task_queue.h" |
#include "webrtc/test/video_capturer.h" |
@@ -66,6 +67,8 @@ class FrameGeneratorCapturer : public VideoCapturer { |
void ForceFrame(); |
void SetFakeRotation(VideoRotation rotation); |
+ void SetFakeContentType(VideoContentTypeId content_type); |
+ |
int64_t first_frame_capture_time() const { return first_frame_capture_time_; } |
FrameGeneratorCapturer(Clock* clock, |
@@ -90,6 +93,8 @@ class FrameGeneratorCapturer : public VideoCapturer { |
int target_fps_; |
VideoRotation fake_rotation_ = kVideoRotation_0; |
+ VideoContentTypeId fake_video_content_type_ = kVideoContent_Default; |
+ |
int64_t first_frame_capture_time_; |
// Must be the last field, so it will be deconstructed first as tasks |
// in the TaskQueue access other fields of the instance of this class. |