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

Unified Diff: webrtc/media/base/videobroadcaster.h

Issue 2698203003: Update sink wants with ranges for both pixel count and frame rate.
Patch Set: Slightly updated sink wants merging in videobroadcaster Created 3 years, 10 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/media/base/videobroadcaster.h
diff --git a/webrtc/media/base/videobroadcaster.h b/webrtc/media/base/videobroadcaster.h
index ccf5b3dd91517f36defef368a6aaef65e4669503..985dd4eac64677bd434a54f9fcb5563f9a0788d6 100644
--- a/webrtc/media/base/videobroadcaster.h
+++ b/webrtc/media/base/videobroadcaster.h
@@ -51,6 +51,8 @@ class VideoBroadcaster : public VideoSourceBase,
void OnFrame(const webrtc::VideoFrame& frame) override;
protected:
+ static void MergeWantsRange(rtc::Optional<rtc::VideoSinkWants::Range>* target,
+ const rtc::VideoSinkWants::Range& item);
void UpdateWants() EXCLUSIVE_LOCKS_REQUIRED(sinks_and_wants_lock_);
const rtc::scoped_refptr<webrtc::VideoFrameBuffer>& GetBlackFrameBuffer(
int width, int height)

Powered by Google App Engine
This is Rietveld 408576698