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

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

Issue 1008093002: Determine the audible state in MediaSourcePlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use starvation timer for renderer freeze detection Created 5 years, 9 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_decoder_job.h
diff --git a/media/base/android/media_decoder_job.h b/media/base/android/media_decoder_job.h
index 83ec5e1f559fa8dbc63b9e7b0d8d9e3ea454bfd3..329512f2c6b52a93ad7717258ec896cb6c3aea66 100644
--- a/media/base/android/media_decoder_job.h
+++ b/media/base/android/media_decoder_job.h
@@ -108,6 +108,9 @@ class MediaDecoderJob {
bool prerolling() const { return prerolling_; }
+ // Returns true if this object has data to decode.
+ bool HasData() const;
+
protected:
// Creates a new MediaDecoderJob instance.
// |decoder_task_runner| - Thread on which the decoder task will run.
@@ -162,9 +165,6 @@ class MediaDecoderJob {
// Queues an access unit into |media_codec_bridge_|'s input buffer.
MediaCodecStatus QueueInputBuffer(const AccessUnit& unit);
- // Returns true if this object has data to decode.
- bool HasData() const;
-
// Initiates a request for more data.
// |done_cb| is called when more data is available in |received_data_|.
void RequestData(const base::Closure& done_cb);

Powered by Google App Engine
This is Rietveld 408576698