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

Side by Side Diff: media/audio/audio_output_controller.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/audio/audio_output_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
7 7
8 #include "base/atomic_ref_count.h" 8 #include "base/atomic_ref_count.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 AudioOutputStream* diverting_to_stream_; 230 AudioOutputStream* diverting_to_stream_;
231 231
232 // The current volume of the audio stream. 232 // The current volume of the audio stream.
233 double volume_; 233 double volume_;
234 234
235 // |state_| is written on the audio manager thread and is read on the 235 // |state_| is written on the audio manager thread and is read on the
236 // hardware audio thread. These operations need to be locked. But lock 236 // hardware audio thread. These operations need to be locked. But lock
237 // is not required for reading on the audio manager thread. 237 // is not required for reading on the audio manager thread.
238 State state_; 238 State state_;
239 239
240 // Atomic ref count indicating when when we're in the middle of handling an
241 // OnMoreIOData() callback. Will be CHECK'd to find crashes.
242 // TODO(dalecurtis): Remove debug helpers for http://crbug.com/349651
243 base::AtomicRefCount not_currently_in_on_more_io_data_;
244
245 // SyncReader is used only in low latency mode for synchronous reading. 240 // SyncReader is used only in low latency mode for synchronous reading.
246 SyncReader* const sync_reader_; 241 SyncReader* const sync_reader_;
247 242
248 // The message loop of audio manager thread that this object runs on. 243 // The message loop of audio manager thread that this object runs on.
249 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_; 244 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_;
250 245
251 #if defined(AUDIO_POWER_MONITORING) 246 #if defined(AUDIO_POWER_MONITORING)
252 // Scans audio samples from OnMoreIOData() as input to compute power levels. 247 // Scans audio samples from OnMoreIOData() as input to compute power levels.
253 AudioPowerMonitor power_monitor_; 248 AudioPowerMonitor power_monitor_;
254 #endif 249 #endif
255 250
256 // Flags when we've asked for a stream to start but it never did. 251 // Flags when we've asked for a stream to start but it never did.
257 base::AtomicRefCount on_more_io_data_called_; 252 base::AtomicRefCount on_more_io_data_called_;
258 scoped_ptr<base::OneShotTimer<AudioOutputController> > wedge_timer_; 253 scoped_ptr<base::OneShotTimer<AudioOutputController> > wedge_timer_;
259 254
260 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); 255 DISALLOW_COPY_AND_ASSIGN(AudioOutputController);
261 }; 256 };
262 257
263 } // namespace media 258 } // namespace media
264 259
265 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ 260 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_output_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698