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 "remoting/protocol/video_frame_pump.h" | 5 #include "remoting/protocol/video_frame_pump.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
11 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
12 #include "remoting/base/auto_thread.h" | 14 #include "remoting/base/auto_thread.h" |
13 #include "remoting/base/auto_thread_task_runner.h" | 15 #include "remoting/base/auto_thread_task_runner.h" |
14 #include "remoting/codec/video_encoder.h" | 16 #include "remoting/codec/video_encoder.h" |
15 #include "remoting/codec/video_encoder_verbatim.h" | 17 #include "remoting/codec/video_encoder_verbatim.h" |
16 #include "remoting/proto/control.pb.h" | 18 #include "remoting/proto/control.pb.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // Start video frame capture. | 235 // Start video frame capture. |
234 pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer), | 236 pump_.reset(new VideoFramePump(encode_task_runner_, std::move(capturer), |
235 std::move(encoder), &video_stub_)); | 237 std::move(encoder), &video_stub_)); |
236 | 238 |
237 // Run MessageLoop until the first frame is received. | 239 // Run MessageLoop until the first frame is received. |
238 run_loop.Run(); | 240 run_loop.Run(); |
239 } | 241 } |
240 | 242 |
241 } // namespace protocol | 243 } // namespace protocol |
242 } // namespace remoting | 244 } // namespace remoting |
OLD | NEW |