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

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

Issue 1287423004: MediaCodecPlayer implementation (stage 5 - reconfiguration) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-cleanuptest
Patch Set: Deleted better Created 5 years, 4 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_player.h
diff --git a/media/base/android/media_codec_player.h b/media/base/android/media_codec_player.h
index 8772ac8f26fb3bab680892ab7307852537df3493..883cf4cf966270275b72233eef75e2d62732a255 100644
--- a/media/base/android/media_codec_player.h
+++ b/media/base/android/media_codec_player.h
@@ -201,6 +201,7 @@ class MEDIA_EXPORT MediaCodecPlayer : public MediaPlayerAndroid,
// For testing only.
void SetDecodersTimeCallbackForTests(DecodersTimeCallback cb);
+ void SetAlwaysReconfigureForTests(DemuxerStream::Type type);
bool IsPrerollingForTests(DemuxerStream::Type type) const;
private:
@@ -249,7 +250,8 @@ class MEDIA_EXPORT MediaCodecPlayer : public MediaPlayerAndroid,
void RequestDemuxerData(DemuxerStream::Type stream_type);
void OnPrefetchDone();
void OnPrerollDone();
- void OnStopDone();
+ void OnDecoderDrained(DemuxerStream::Type type);
+ void OnStopDone(DemuxerStream::Type type);
void OnError();
void OnStarvation(DemuxerStream::Type stream_type);
void OnTimeIntervalUpdate(DemuxerStream::Type stream_type,

Powered by Google App Engine
This is Rietveld 408576698