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

Unified Diff: media/audio/audio_output_controller.cc

Issue 231623005: Remove obsolete atomic debugging checks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « media/audio/audio_output_controller.h ('k') | media/base/sinc_resampler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.cc
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 381452e2db7132fd16c261167fab29f54ca2ad80..6d30f4b1fb03ecf230ce62f7a9c4715675446051 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -41,7 +41,6 @@ AudioOutputController::AudioOutputController(
diverting_to_stream_(NULL),
volume_(1.0),
state_(kEmpty),
- not_currently_in_on_more_io_data_(1),
sync_reader_(sync_reader),
message_loop_(audio_manager->GetTaskRunner()),
#if defined(AUDIO_POWER_MONITORING)
@@ -58,8 +57,6 @@ AudioOutputController::AudioOutputController(
AudioOutputController::~AudioOutputController() {
DCHECK_EQ(kClosed, state_);
- // TODO(dalecurtis): Remove debugging for http://crbug.com/349651
- CHECK(!base::AtomicRefCountDec(&not_currently_in_on_more_io_data_));
}
// static
@@ -304,7 +301,6 @@ int AudioOutputController::OnMoreData(AudioBus* dest,
int AudioOutputController::OnMoreIOData(AudioBus* source,
AudioBus* dest,
AudioBuffersState buffers_state) {
- CHECK(!base::AtomicRefCountDec(&not_currently_in_on_more_io_data_));
TRACE_EVENT0("audio", "AudioOutputController::OnMoreIOData");
// Indicate that we haven't wedged (at least not indefinitely, WedgeCheck()
@@ -324,7 +320,6 @@ int AudioOutputController::OnMoreIOData(AudioBus* source,
power_monitor_.Scan(*dest, frames);
#endif
- base::AtomicRefCountInc(&not_currently_in_on_more_io_data_);
return frames;
}
« no previous file with comments | « media/audio/audio_output_controller.h ('k') | media/base/sinc_resampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698