OLD | NEW |
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 #include "media/base/pipeline_impl.h" | 5 #include "media/base/pipeline_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "media/base/bind_to_current_loop.h" | 20 #include "media/base/bind_to_current_loop.h" |
21 #include "media/base/demuxer.h" | 21 #include "media/base/demuxer.h" |
22 #include "media/base/media_log.h" | 22 #include "media/base/media_log.h" |
23 #include "media/base/media_switches.h" | 23 #include "media/base/media_switches.h" |
24 #include "media/base/renderer.h" | 24 #include "media/base/renderer.h" |
25 #include "media/base/renderer_client.h" | 25 #include "media/base/renderer_client.h" |
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 void PipelineImpl::OnSuspendDone() { | 1235 void PipelineImpl::OnSuspendDone() { |
1236 DVLOG(3) << __func__; | 1236 DVLOG(3) << __func__; |
1237 DCHECK(thread_checker_.CalledOnValidThread()); | 1237 DCHECK(thread_checker_.CalledOnValidThread()); |
1238 DCHECK(IsRunning()); | 1238 DCHECK(IsRunning()); |
1239 | 1239 |
1240 DCHECK(!suspend_cb_.is_null()); | 1240 DCHECK(!suspend_cb_.is_null()); |
1241 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK); | 1241 base::ResetAndReturn(&suspend_cb_).Run(PIPELINE_OK); |
1242 } | 1242 } |
1243 | 1243 |
1244 } // namespace media | 1244 } // namespace media |
OLD | NEW |