Chromium Code Reviews| Index: content/common/gpu/media/android_video_decode_accelerator.h |
| diff --git a/content/common/gpu/media/android_video_decode_accelerator.h b/content/common/gpu/media/android_video_decode_accelerator.h |
| index 0d09062e538ed03e15c0a50c5722ebc89d6a2bc6..4bea54b17780a06708ea0b37d410ff0b39213dfa 100644 |
| --- a/content/common/gpu/media/android_video_decode_accelerator.h |
| +++ b/content/common/gpu/media/android_video_decode_accelerator.h |
| @@ -170,6 +170,12 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator |
| // start the timer. Calling it with false may stop the timer. |
| void ManageTimer(bool did_work); |
| + // Resets MediaCodec and buffers/containers used for storing output. These |
| + // components need to be reset upon EOS to decode a later stream. Input state |
| + // (e.g. queued BitstreamBuffers) is not reset, as input following an EOS |
| + // is still valid and should be processed. |
| + void ResetOutputState(); |
|
watk
2016/01/06 20:05:51
My naming suggestions: PrepareForNewConfig? Prepar
chcunningham
2016/01/07 02:14:48
Acknowledged.
|
| + |
| // Return true if and only if we should use deferred rendering. |
| static bool UseDeferredRenderingStrategy(); |