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

Unified Diff: webrtc/test/frame_generator_capturer.h

Issue 2716643002: Add framerate to VideoSinkWants and ability to signal on overuse (Closed)
Patch Set: windows warning 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
Index: webrtc/test/frame_generator_capturer.h
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h
index dfd12711d187988560178bc90082b1e4788d472f..3d65c63dc5784ba88a477ecb8536aa618716634a 100644
--- a/webrtc/test/frame_generator_capturer.h
+++ b/webrtc/test/frame_generator_capturer.h
@@ -19,6 +19,10 @@
#include "webrtc/test/video_capturer.h"
#include "webrtc/typedefs.h"
+namespace cricket {
+class VideoAdapter;
+} // namespace cricket
+
namespace webrtc {
class CriticalSectionWrapper;
@@ -86,8 +90,10 @@ class FrameGeneratorCapturer : public VideoCapturer {
rtc::CriticalSection lock_;
rtc::PlatformThread thread_;
std::unique_ptr<FrameGenerator> frame_generator_;
+ std::unique_ptr<cricket::VideoAdapter> video_adpter_;
- int target_fps_;
+ int target_fps_ GUARDED_BY(&lock_);
+ rtc::Optional<int> wanted_fps_ GUARDED_BY(&lock_);
VideoRotation fake_rotation_ = kVideoRotation_0;
int64_t first_frame_capture_time_;

Powered by Google App Engine
This is Rietveld 408576698