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

Unified Diff: media/cast/sender/video_sender.h

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 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: media/cast/sender/video_sender.h
diff --git a/media/cast/sender/video_sender.h b/media/cast/sender/video_sender.h
index 025aaa01cc64a320c29a390f6255b06bc026a4c1..c6a2ed699a60f6a55d9ae8144facefb755b6b814 100644
--- a/media/cast/sender/video_sender.h
+++ b/media/cast/sender/video_sender.h
@@ -104,6 +104,11 @@ class VideoSender : public FrameSender,
double last_reported_deadline_utilization_;
double last_reported_lossy_utilization_;
+ // This tracks the time when the request was sent to encoder to encode a key
+ // frame on receiving a Pli message. It is used to limit the sender not
+ // to duplicately respond to multiple Pli messages in a short period.
+ base::TimeTicks last_time_attempted_to_resolve_pli_;
+
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<VideoSender> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698