OLD | NEW |
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/blink/webaudiosourceprovider_impl.h" | 5 #include "media/blink/webaudiosourceprovider_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
16 #include "media/audio/null_audio_sink.h" | 17 #include "media/audio/null_audio_sink.h" |
17 #include "media/base/audio_timestamp_helper.h" | 18 #include "media/base/audio_timestamp_helper.h" |
18 #include "media/base/bind_to_current_loop.h" | 19 #include "media/base/bind_to_current_loop.h" |
19 #include "media/base/media_log.h" | 20 #include "media/base/media_log.h" |
20 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" | 21 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" |
21 | 22 |
22 using blink::WebVector; | 23 using blink::WebVector; |
23 | 24 |
24 namespace media { | 25 namespace media { |
25 | 26 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 331 |
331 return num_rendered_frames; | 332 return num_rendered_frames; |
332 } | 333 } |
333 | 334 |
334 void WebAudioSourceProviderImpl::TeeFilter::OnRenderError() { | 335 void WebAudioSourceProviderImpl::TeeFilter::OnRenderError() { |
335 DCHECK(IsInitialized()); | 336 DCHECK(IsInitialized()); |
336 renderer_->OnRenderError(); | 337 renderer_->OnRenderError(); |
337 } | 338 } |
338 | 339 |
339 } // namespace media | 340 } // namespace media |
OLD | NEW |