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

Unified Diff: media/base/android/media_codec_decoder.h

Issue 1242913004: MediaCodecPlayer implementation (stage 3 - browser seek and surface change) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-seek
Patch Set: Addressed Min comments, added unit tests. Created 5 years, 5 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: media/base/android/media_codec_decoder.h
diff --git a/media/base/android/media_codec_decoder.h b/media/base/android/media_codec_decoder.h
index a974eeaa0b12537462e273db8f51d1732c659ada..c73ae8e7322e626965ae3c95f1124a586d5e032d 100644
--- a/media/base/android/media_codec_decoder.h
+++ b/media/base/android/media_codec_decoder.h
@@ -230,9 +230,9 @@ class MediaCodecDecoder {
// Returns the number of delayed task (we might have them for video).
virtual int NumDelayedRenderTasks() const;
- // Releases output buffers that are dequeued and not released yet
- // because their rendering is delayed (video).
- virtual void ReleaseDelayedBuffers() {}
+ // Releases output buffers that are dequeued and not released yet (video)
+ // if the |release| parameter is set and then remove the references to them.
+ virtual void ClearDelayedBuffers(bool release) {}
#ifndef NDEBUG
// For video, checks that access unit is the key frame or stand-alone EOS.
@@ -259,6 +259,10 @@ class MediaCodecDecoder {
// The queue of access units.
AccessUnitQueue au_queue_;
+ // Flag forces reconfiguration even if |media_codec_bridge_| exists. Currently
+ // is set by video decoder when the video surface changes.
+ bool needs_reconfigure_;
+
private:
enum DecoderState {
kStopped = 0,
@@ -266,6 +270,7 @@ class MediaCodecDecoder {
kPrefetched,
kRunning,
kStopping,
+ kInEmergencyStop,
kError,
};

Powered by Google App Engine
This is Rietveld 408576698