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 "remoting/host/video_scheduler.h" | 5 #include "remoting/host/video_scheduler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "remoting/base/auto_thread_task_runner.h" | 10 #include "remoting/base/auto_thread_task_runner.h" |
11 #include "remoting/codec/video_encoder.h" | 11 #include "remoting/codec/video_encoder.h" |
12 #include "remoting/proto/video.pb.h" | 12 #include "remoting/proto/video.pb.h" |
13 #include "remoting/protocol/protocol_mock_objects.h" | 13 #include "remoting/protocol/protocol_mock_objects.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 16 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
17 #include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_object
s.h" | 17 #include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_object
s.h" |
18 | 18 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 .RetiresOnSaturation(); | 182 .RetiresOnSaturation(); |
183 | 183 |
184 // Start video frame capture. | 184 // Start video frame capture. |
185 StartVideoScheduler(capturer.PassAs<webrtc::ScreenCapturer>()); | 185 StartVideoScheduler(capturer.PassAs<webrtc::ScreenCapturer>()); |
186 | 186 |
187 task_runner_ = NULL; | 187 task_runner_ = NULL; |
188 run_loop_.Run(); | 188 run_loop_.Run(); |
189 } | 189 } |
190 | 190 |
191 } // namespace remoting | 191 } // namespace remoting |
OLD | NEW |