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