| 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/location.h" | 12 #include "base/location.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/threading/thread_task_runner_handle.h" |
| 15 #include "remoting/protocol/frame_consumer.h" | 15 #include "remoting/protocol/frame_consumer.h" |
| 16 #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" | 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, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 void WebrtcVideoRendererAdapter::DrawFrame( | 76 void WebrtcVideoRendererAdapter::DrawFrame( |
| 77 std::unique_ptr<webrtc::DesktopFrame> frame) { | 77 std::unique_ptr<webrtc::DesktopFrame> frame) { |
| 78 DCHECK(task_runner_->BelongsToCurrentThread()); | 78 DCHECK(task_runner_->BelongsToCurrentThread()); |
| 79 frame_consumer_->DrawFrame(std::move(frame), base::Closure()); | 79 frame_consumer_->DrawFrame(std::move(frame), base::Closure()); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace protocol | 82 } // namespace protocol |
| 83 } // namespace remoting | 83 } // namespace remoting |
| OLD | NEW |