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

Side by Side Diff: content/renderer/media/webrtc/webrtc_video_capturer_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" 5 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/aligned_memory.h" 8 #include "base/memory/aligned_memory.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h" 10 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h"
11 #include "media/base/timestamp_constants.h" 11 #include "media/base/timestamp_constants.h"
12 #include "media/base/video_frame.h" 12 #include "media/base/video_frame.h"
13 #include "media/base/video_frame_pool.h" 13 #include "media/base/video_frame_pool.h"
14 #include "third_party/libjingle/source/talk/media/base/videoframefactory.h"
15 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoframe.h"
16 #include "third_party/libyuv/include/libyuv/convert_from.h" 14 #include "third_party/libyuv/include/libyuv/convert_from.h"
17 #include "third_party/libyuv/include/libyuv/scale.h" 15 #include "third_party/libyuv/include/libyuv/scale.h"
18 #include "third_party/webrtc/common_video/include/video_frame_buffer.h" 16 #include "third_party/webrtc/common_video/include/video_frame_buffer.h"
19 #include "third_party/webrtc/common_video/rotation.h" 17 #include "third_party/webrtc/common_video/rotation.h"
18 #include "third_party/webrtc/media/base/videoframefactory.h"
19 #include "third_party/webrtc/media/webrtc/webrtcvideoframe.h"
20 20
21 namespace content { 21 namespace content {
22 namespace { 22 namespace {
23 23
24 // Empty method used for keeping a reference to the original media::VideoFrame. 24 // Empty method used for keeping a reference to the original media::VideoFrame.
25 // The reference to |frame| is kept in the closure that calls this method. 25 // The reference to |frame| is kept in the closure that calls this method.
26 void ReleaseOriginalFrame(const scoped_refptr<media::VideoFrame>& frame) { 26 void ReleaseOriginalFrame(const scoped_refptr<media::VideoFrame>& frame) {
27 } 27 }
28 28
29 } // anonymous namespace 29 } // anonymous namespace
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 reinterpret_cast<MediaVideoFrameFactory*>(frame_factory()); 232 reinterpret_cast<MediaVideoFrameFactory*>(frame_factory());
233 media_video_frame_factory->SetFrame(frame); 233 media_video_frame_factory->SetFrame(frame);
234 234
235 // This signals to libJingle that a new VideoFrame is available. 235 // This signals to libJingle that a new VideoFrame is available.
236 SignalFrameCaptured(this, media_video_frame_factory->GetCapturedFrame()); 236 SignalFrameCaptured(this, media_video_frame_factory->GetCapturedFrame());
237 237
238 media_video_frame_factory->ReleaseFrame(); // Release the frame ASAP. 238 media_video_frame_factory->ReleaseFrame(); // Release the frame ASAP.
239 } 239 }
240 240
241 } // namespace content 241 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/webrtc_video_capturer_adapter.h ('k') | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698