Commit f341ad0c authored by wuchengli's avatar wuchengli Committed by Commit bot

VDA: document the behavior of calling Reset before NotifyFlushDone.

From video_decode_accelerator.h, it's not clear if it's valid to
call Reset before NotifyFlushDone. Currently ARC may call Reset
before NotifyFlushDone is back. We need to document this and add
a test for it.

BUG=671944
TEST=None

Review-Url: https://codereview.chromium.org/2556873003
Cr-Commit-Position: refs/heads/master@{#438774}
parent 5974e6f7
......@@ -288,7 +288,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// Resets the decoder: all pending inputs are dropped immediately and the
// decoder returned to a state ready for further Decode()s, followed by
// NotifyResetDone() being called on the client. Can be used to implement
// "seek".
// "seek". After Flush is called, it is OK to call Reset before receiving
// NotifyFlushDone() and VDA should cancel the flush. Note NotifyFlushDone()
// may be on the way to the client. If client gets NotifyFlushDone(), it
// should be before NotifyResetDone().
virtual void Reset() = 0;
// An optional graphics surface that the VDA should render to. For setting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment