diff options
author | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 21:20:48 +0000 |
---|---|---|
committer | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 21:20:48 +0000 |
commit | 185e731d048127d0cc4356e8ad982475de627f83 (patch) | |
tree | 1625273190adacb879e72c61c89c5565b3f6686c /media/audio | |
parent | c2fc938e7179cba010fffc079a3912857ade46ff (diff) | |
download | chromium_src-185e731d048127d0cc4356e8ad982475de627f83.zip chromium_src-185e731d048127d0cc4356e8ad982475de627f83.tar.gz chromium_src-185e731d048127d0cc4356e8ad982475de627f83.tar.bz2 |
Remove unused AudioBuffersState member.
Review URL: http://codereview.chromium.org/9689015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r-- | media/audio/audio_buffers_state.cc | 12 | ||||
-rw-r--r-- | media/audio/audio_buffers_state.h | 18 |
2 files changed, 9 insertions, 21 deletions
diff --git a/media/audio/audio_buffers_state.cc b/media/audio/audio_buffers_state.cc index f31cf1d..7e829fe 100644 --- a/media/audio/audio_buffers_state.cc +++ b/media/audio/audio_buffers_state.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,17 +6,11 @@ AudioBuffersState::AudioBuffersState() : pending_bytes(0), - hardware_delay_bytes(0), - timestamp(base::Time::Now()) { + hardware_delay_bytes(0) { } AudioBuffersState::AudioBuffersState(int pending_bytes, int hardware_delay_bytes) : pending_bytes(pending_bytes), - hardware_delay_bytes(hardware_delay_bytes), - timestamp(base::Time::Now()) { -} - -int AudioBuffersState::total_bytes() { - return pending_bytes + hardware_delay_bytes; + hardware_delay_bytes(hardware_delay_bytes) { } diff --git a/media/audio/audio_buffers_state.h b/media/audio/audio_buffers_state.h index 796c081..a7299e1 100644 --- a/media/audio/audio_buffers_state.h +++ b/media/audio/audio_buffers_state.h @@ -1,21 +1,21 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ #define MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ -#include "base/time.h" #include "media/base/media_export.h" -// AudioBuffersState struct stores current state of audio buffers along with -// the timestamp of the moment this state corresponds to. It is used for audio -// synchronization. +// AudioBuffersState struct stores current state of audio buffers. +// It is used for audio synchronization. struct MEDIA_EXPORT AudioBuffersState { AudioBuffersState(); AudioBuffersState(int pending_bytes, int hardware_delay_bytes); - int total_bytes(); + int total_bytes() { + return pending_bytes + hardware_delay_bytes; + } // Number of bytes we currently have in our software buffer. int pending_bytes; @@ -23,12 +23,6 @@ struct MEDIA_EXPORT AudioBuffersState { // Number of bytes that have been written to the device, but haven't // been played yet. int hardware_delay_bytes; - - // Timestamp of the moment when the buffers state was captured. It is used - // to account for the time it takes to deliver AudioBuffersState from - // the browser process to the renderer. - base::Time timestamp; }; - #endif // MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ |