Chromium Code Reviews| Index: media/capture/video/video_frame_receiver.h |
| diff --git a/media/capture/video/video_frame_receiver.h b/media/capture/video/video_frame_receiver.h |
| index 55d98aa564ae49ca38a8761a9b788bd63810e621..18292eb18dc96e112895f32d69681402135442b9 100644 |
| --- a/media/capture/video/video_frame_receiver.h |
| +++ b/media/capture/video/video_frame_receiver.h |
| @@ -21,7 +21,16 @@ class CAPTURE_EXPORT VideoFrameReceiver { |
| scoped_refptr<media::VideoFrame> frame) = 0; |
| virtual void OnError() = 0; |
| virtual void OnLog(const std::string& message) = 0; |
| - virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0; |
| + |
| + // Tells the VideoFrameReceiver that the producer is no longer going to use |
| + // the buffer with id |buffer_id| for frame delivery. This may be called even |
| + // while the receiver is still consuming the buffer from a call to |
| + // OnIncomingCapturedVideoFrame(). In that case, it means that the |
| + // caller is asking the VideoFrameReceiver to release the buffer |
| + // at its earliest convenience. |
| + // The producer guarantees that it does not reuse a retired buffer_id before |
|
mcasas
2017/01/20 22:41:32
s/buffer_id/|buffer_id|/
chfremer
2017/01/25 23:45:24
Done.
|
| + // having cycled through all other possible values. |
| + virtual void OnBufferRetired(int buffer_id) = 0; |
| }; |
| } // namespace media |