OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/renderer/media/video_track_recorder.h" | 5 #include "content/renderer/media/video_track_recorder.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" |
12 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
13 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
14 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
18 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" | 19 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" |
19 #include "content/renderer/render_thread_impl.h" | 20 #include "content/renderer/render_thread_impl.h" |
20 #include "media/base/bind_to_current_loop.h" | 21 #include "media/base/bind_to_current_loop.h" |
21 #include "media/base/video_frame.h" | 22 #include "media/base/video_frame.h" |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 encoder_->SetPaused(paused_before_init_); | 1156 encoder_->SetPaused(paused_before_init_); |
1156 | 1157 |
1157 // StartFrameEncode() will be called on Render IO thread. | 1158 // StartFrameEncode() will be called on Render IO thread. |
1158 MediaStreamVideoSink::ConnectToTrack( | 1159 MediaStreamVideoSink::ConnectToTrack( |
1159 track_, | 1160 track_, |
1160 base::Bind(&VideoTrackRecorder::Encoder::StartFrameEncode, encoder_), | 1161 base::Bind(&VideoTrackRecorder::Encoder::StartFrameEncode, encoder_), |
1161 false); | 1162 false); |
1162 } | 1163 } |
1163 | 1164 |
1164 } // namespace content | 1165 } // namespace content |
OLD | NEW |