Index: media/cast/sender/video_sender.h |
diff --git a/media/cast/sender/video_sender.h b/media/cast/sender/video_sender.h |
index ebada4d26a47ef08822422a9d466fef3208e3fae..1df875dbdf6f6eeeab7f1e117b13de853bc0114a 100644 |
--- a/media/cast/sender/video_sender.h |
+++ b/media/cast/sender/video_sender.h |
@@ -70,11 +70,11 @@ class VideoSender : public FrameSender, |
void ResendCheck(); |
void ResendForKickstart(); |
- // Returns true if there are too many frames in flight, as defined by the |
- // configured target playout delay plus simple logic. When this is true, |
- // InsertRawVideoFrame() will silenty drop frames instead of sending them to |
- // the video encoder. |
- bool AreTooManyFramesInFlight() const; |
+ // Returns true if there are too many frames in flight, or if the media |
+ // duration of the frames in flight would be too high by sending the next |
+ // frame. The latter metric is determined from the given |capture_time| |
+ // for the next frame to be encoded and sent. |
+ bool ShouldDropNextFrame(base::TimeTicks capture_time) const; |
// Called by the |video_encoder_| with the next EncodeFrame to send. |
void SendEncodedVideoFrame(int requested_bitrate_before_encode, |