Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1560983002: Fix MP4 mid-stream resolution changes for MSE on android spitzer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698