cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / media / audio / audio_output_dispatcher.cc
blob06206d7be7fc8651f09dde43ca154d80ce13fc3c
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
3 // found in the LICENSE file.
5 #include "media/audio/audio_output_dispatcher.h"
7 #include "base/message_loop/message_loop.h"
9 namespace media {
11 AudioOutputDispatcher::AudioOutputDispatcher(
12 AudioManager* audio_manager,
13 const AudioParameters& params,
14 const std::string& input_device_id)
15 : audio_manager_(audio_manager),
16 message_loop_(base::MessageLoop::current()),
17 params_(params),
18 input_device_id_(input_device_id) {
19 // We expect to be instantiated on the audio thread. Otherwise the
20 // message_loop_ member will point to the wrong message loop!
21 DCHECK(audio_manager->GetMessageLoop()->BelongsToCurrentThread());
24 AudioOutputDispatcher::~AudioOutputDispatcher() {
25 DCHECK_EQ(base::MessageLoop::current(), message_loop_);
28 } // namespace media