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

Unified Diff: media/base/audio_buffer_queue.h

Issue 516113002: Remove time getters from AudioBufferQueue and AudioRendererAlgorithm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | media/base/audio_buffer_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer_queue.h
diff --git a/media/base/audio_buffer_queue.h b/media/base/audio_buffer_queue.h
index 58823f2646b203a327cccae15c1adc2b41c87586..b5e16e08571025ca38e77e17dc9a540680940aec 100644
--- a/media/base/audio_buffer_queue.h
+++ b/media/base/audio_buffer_queue.h
@@ -57,13 +57,6 @@ class MEDIA_EXPORT AudioBufferQueue {
// Returns the number of frames buffered beyond the current position.
int frames() const { return frames_; }
- // Returns the current timestamp, taking into account current offset. The
- // value calculated based on the timestamp of the current buffer. If timestamp
- // for the current buffer is set to 0, then returns value that corresponds to
- // the last position in a buffer that had timestamp set. kNoTimestamp() is
- // returned if no buffers we read from had timestamp set.
- base::TimeDelta current_time() const { return current_time_; }
-
private:
// Definition of the buffer queue.
typedef std::deque<scoped_refptr<AudioBuffer> > BufferQueue;
@@ -81,10 +74,6 @@ class MEDIA_EXPORT AudioBufferQueue {
int dest_frame_offset,
AudioBus* dest);
- // Updates |current_time_| with the time that corresponds to the specified
- // position in the buffer.
- void UpdateCurrentTime(BufferQueue::iterator buffer, int offset);
-
BufferQueue::iterator current_buffer_;
BufferQueue buffers_;
int current_buffer_offset_;
@@ -92,10 +81,6 @@ class MEDIA_EXPORT AudioBufferQueue {
// Number of frames available to be read in the buffer.
int frames_;
- // Keeps track of the most recent time we've seen in case the |buffers_| is
- // empty when our owner asks what time it is.
- base::TimeDelta current_time_;
-
DISALLOW_COPY_AND_ASSIGN(AudioBufferQueue);
};
« no previous file with comments | « no previous file | media/base/audio_buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698