diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-31 01:41:31 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-31 01:41:31 +0000 |
commit | a15e357e681110acb2be542e5fbaabb8cfc75782 (patch) | |
tree | ee0f7a21b9a0eab5e2ef77be6ca742b9fd4abaa9 /media/base/data_buffer.cc | |
parent | ca6f57e7137d93fb328857b16e4129288053e061 (diff) | |
download | chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.zip chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.tar.gz chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.tar.bz2 |
Changed media::Buffer interfaces to use base::TimeDelta.
Review URL: http://codereview.chromium.org/19739
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/data_buffer.cc')
-rwxr-xr-x | media/base/data_buffer.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/media/base/data_buffer.cc b/media/base/data_buffer.cc index c5c290d..ae5314a 100755 --- a/media/base/data_buffer.cc +++ b/media/base/data_buffer.cc @@ -8,7 +8,8 @@ namespace media { DataBuffer::DataBuffer(char* data, size_t buffer_size, size_t data_size, - int64 timestamp, int64 duration) + const base::TimeDelta& timestamp, + const base::TimeDelta& duration) : data_(data), buffer_size_(buffer_size), data_size_(data_size), @@ -23,19 +24,19 @@ DataBuffer::~DataBuffer() { delete [] data_; } -int64 DataBuffer::GetTimestamp() const { +base::TimeDelta DataBuffer::GetTimestamp() const { return timestamp_; } -void DataBuffer::SetTimestamp(int64 timestamp) { +void DataBuffer::SetTimestamp(const base::TimeDelta& timestamp) { timestamp_ = timestamp; } -int64 DataBuffer::GetDuration() const { +base::TimeDelta DataBuffer::GetDuration() const { return duration_; } -void DataBuffer::SetDuration(int64 duration) { +void DataBuffer::SetDuration(const base::TimeDelta& duration) { duration_ = duration; } |