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/webrtc_video_renderer_adapter.h" | 5 #include "remoting/protocol/webrtc_video_renderer_adapter.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
15 #include "remoting/protocol/frame_consumer.h" | 15 #include "remoting/protocol/frame_consumer.h" |
16 #include "third_party/libjingle/source/talk/media/base/videoframe.h" | |
17 #include "third_party/libyuv/include/libyuv/video_common.h" | 16 #include "third_party/libyuv/include/libyuv/video_common.h" |
| 17 #include "third_party/webrtc/media/base/videoframe.h" |
18 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 18 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 namespace protocol { | 21 namespace protocol { |
22 | 22 |
23 WebrtcVideoRendererAdapter::WebrtcVideoRendererAdapter( | 23 WebrtcVideoRendererAdapter::WebrtcVideoRendererAdapter( |
24 scoped_refptr<webrtc::MediaStreamInterface> media_stream, | 24 scoped_refptr<webrtc::MediaStreamInterface> media_stream, |
25 FrameConsumer* frame_consumer) | 25 FrameConsumer* frame_consumer) |
26 : media_stream_(std::move(media_stream)), | 26 : media_stream_(std::move(media_stream)), |
27 frame_consumer_(frame_consumer), | 27 frame_consumer_(frame_consumer), |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 void WebrtcVideoRendererAdapter::DrawFrame( | 72 void WebrtcVideoRendererAdapter::DrawFrame( |
73 scoped_ptr<webrtc::DesktopFrame> frame) { | 73 scoped_ptr<webrtc::DesktopFrame> frame) { |
74 DCHECK(task_runner_->BelongsToCurrentThread()); | 74 DCHECK(task_runner_->BelongsToCurrentThread()); |
75 frame_consumer_->DrawFrame(std::move(frame), base::Closure()); | 75 frame_consumer_->DrawFrame(std::move(frame), base::Closure()); |
76 } | 76 } |
77 | 77 |
78 } // namespace remoting | 78 } // namespace remoting |
79 } // namespace protocol | 79 } // namespace protocol |
OLD | NEW |