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

Side by Side Diff: media/audio/clockless_audio_sink.cc

Issue 2038053002: Change audio render thread checking to use new AudioRendererSink::BelongsToRendererThread() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Rebase. Created 4 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "media/audio/clockless_audio_sink.h" 5 #include "media/audio/clockless_audio_sink.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/simple_thread.h" 10 #include "base/threading/simple_thread.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 bool ClocklessAudioSink::SetVolume(double volume) { 127 bool ClocklessAudioSink::SetVolume(double volume) {
128 // Audio is always muted. 128 // Audio is always muted.
129 return volume == 0.0; 129 return volume == 0.0;
130 } 130 }
131 131
132 OutputDeviceInfo ClocklessAudioSink::GetOutputDeviceInfo() { 132 OutputDeviceInfo ClocklessAudioSink::GetOutputDeviceInfo() {
133 return device_info_; 133 return device_info_;
134 } 134 }
135 135
136 bool ClocklessAudioSink::CurrentThreadIsRenderingThread() {
137 NOTIMPLEMENTED();
138 return false;
139 }
140
136 void ClocklessAudioSink::StartAudioHashForTesting() { 141 void ClocklessAudioSink::StartAudioHashForTesting() {
137 DCHECK(!initialized_); 142 DCHECK(!initialized_);
138 hashing_ = true; 143 hashing_ = true;
139 } 144 }
140 145
141 std::string ClocklessAudioSink::GetAudioHashForTesting() { 146 std::string ClocklessAudioSink::GetAudioHashForTesting() {
142 return thread_ && hashing_ ? thread_->GetAudioHash() : std::string(); 147 return thread_ && hashing_ ? thread_->GetAudioHash() : std::string();
143 } 148 }
144 149
145 } // namespace media 150 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698