| Index: media/base/video_decoder.h
|
| diff --git a/media/base/video_decoder.h b/media/base/video_decoder.h
|
| index 5b6664af4fb0b40a37bf6dfd2c498eff77b1ba97..93a82e164310005f35a5af4050d5290a14ce2dd9 100644
|
| --- a/media/base/video_decoder.h
|
| +++ b/media/base/video_decoder.h
|
| @@ -46,8 +46,10 @@ class MEDIA_EXPORT VideoDecoder {
|
| const PipelineStatusCB& status_cb) = 0;
|
|
|
| // Requests a |buffer| to be decoded. The status of the decoder and decoded
|
| - // frame are returned via the provided callback. Only one decode may be in
|
| - // flight at any given time.
|
| + // frame are returned via the provided callback. Some decoders may allow
|
| + // decoding multiple frames in parallel. Callers should call
|
| + // GetMaxDecodeRequests() to get number of frames that may be decoded in
|
| + // parallel.
|
| //
|
| // Implementations guarantee that the callback will not be called from within
|
| // this method.
|
| @@ -93,6 +95,9 @@ class MEDIA_EXPORT VideoDecoder {
|
| // use a fixed set of VideoFrames for decoding.
|
| virtual bool CanReadWithoutStalling() const;
|
|
|
| + // Returns how many frames that may be decoded in parallel.
|
| + virtual int GetMaxDecodeRequests() const;
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
|
| };
|
|
|