summaryrefslogtreecommitdiffstats
path: root/media/base/audio_splicer.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 19:50:09 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 19:50:09 +0000
commitb3341733befdca5563123e90b65adbd92b97b2ad (patch)
tree2821621c5dc84f07b3939ede66e7edbb6afaa982 /media/base/audio_splicer.h
parent48697d8a33d2b98f7401a3b1e657c86cf3dba981 (diff)
downloadchromium_src-b3341733befdca5563123e90b65adbd92b97b2ad.zip
chromium_src-b3341733befdca5563123e90b65adbd92b97b2ad.tar.gz
chromium_src-b3341733befdca5563123e90b65adbd92b97b2ad.tar.bz2
Eliminate media::Buffer as a base class for media::DecoderBuffer and media::DataBuffer.
It was never a good idea in the first place. Our usage is exclusively with DecoderBuffers or DataBuffers. There's never a case where we benefit from using Buffer as a base class aside from hiding GetWriteableData(), however it's not a compelling enough reason to keep Buffer around. BUG=169614 TBR=dmichael Review URL: https://codereview.chromium.org/11880008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/audio_splicer.h')
-rw-r--r--media/base/audio_splicer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/media/base/audio_splicer.h b/media/base/audio_splicer.h
index aa97fae..22cce47 100644
--- a/media/base/audio_splicer.h
+++ b/media/base/audio_splicer.h
@@ -14,7 +14,7 @@
namespace media {
class AudioDecoderConfig;
-class Buffer;
+class DataBuffer;
// Helper class that handles filling gaps and resolving overlaps.
class MEDIA_EXPORT AudioSplicer {
@@ -29,17 +29,17 @@ class MEDIA_EXPORT AudioSplicer {
// Adds a new buffer full of samples or end of stream buffer to the splicer.
// Returns true if the buffer was accepted. False is returned if an error
// occurred.
- bool AddInput(const scoped_refptr<Buffer>& input);
+ bool AddInput(const scoped_refptr<DataBuffer>& input);
// Returns true if the splicer has a buffer to return.
bool HasNextBuffer() const;
// Removes the next buffer from the output buffer queue and returns it.
// This should only be called if HasNextBuffer() returns true.
- scoped_refptr<Buffer> GetNextBuffer();
+ scoped_refptr<DataBuffer> GetNextBuffer();
private:
- void AddOutputBuffer(const scoped_refptr<Buffer>& buffer);
+ void AddOutputBuffer(const scoped_refptr<DataBuffer>& buffer);
AudioTimestampHelper output_timestamp_helper_;
@@ -49,7 +49,7 @@ class MEDIA_EXPORT AudioSplicer {
// in the source content.
int min_gap_size_;
- std::deque<scoped_refptr<Buffer> > output_buffers_;
+ std::deque<scoped_refptr<DataBuffer> > output_buffers_;
bool received_end_of_stream_;
DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSplicer);