Chromium Code Reviews

Unified Diff: webrtc/test/frame_generator_capturer.cc

Issue 2351633002: Let ViEEncoder handle resolution changes. (Closed)
Patch Set: Fix perf test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/test/frame_generator_capturer.cc
diff --git a/webrtc/test/frame_generator_capturer.cc b/webrtc/test/frame_generator_capturer.cc
index 7e929095f048a7876569affb59a7fa6fea39e5ab..d80154a8de591f305b0286aa21b187e2bc6f2bd1 100644
--- a/webrtc/test/frame_generator_capturer.cc
+++ b/webrtc/test/frame_generator_capturer.cc
@@ -124,6 +124,11 @@ void FrameGeneratorCapturer::Stop() {
sending_ = false;
}
+void FrameGeneratorCapturer::ChangeResolution(size_t width, size_t height) {
+ rtc::CritScope cs(&lock_);
+ frame_generator_->ChangeResolution(width, height);
+}
+
void FrameGeneratorCapturer::AddOrUpdateSink(
rtc::VideoSinkInterface<VideoFrame>* sink,
const rtc::VideoSinkWants& wants) {

Powered by Google App Engine