Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: remoting/protocol/webrtc_video_renderer_adapter.cc

Issue 1669023004: Roll WebRTC 11486:11495, Libjingle 11485:11495 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update includes in content and remoting Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.cc ('k') | remoting/test/fake_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698