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

Side by Side Diff: content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc

Issue 1067803002: Roll WebRTC 8931:8933, Libjingle 8930:8932 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove NativeHandleImpl Created 5 years, 8 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 "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 uint8_t* data(webrtc::PlaneType type) override { 59 uint8_t* data(webrtc::PlaneType type) override {
60 NOTREACHED(); 60 NOTREACHED();
61 return nullptr; 61 return nullptr;
62 } 62 }
63 63
64 int stride(webrtc::PlaneType type) const override { 64 int stride(webrtc::PlaneType type) const override {
65 return frame_->stride(WebRtcToMediaPlaneType(type)); 65 return frame_->stride(WebRtcToMediaPlaneType(type));
66 } 66 }
67 67
68 rtc::scoped_refptr<webrtc::NativeHandle> native_handle() const override { 68 void* native_handle() const override { return nullptr; }
69 return nullptr;
70 }
71 69
72 ~VideoFrameWrapper() override {} 70 ~VideoFrameWrapper() override {}
73 friend class rtc::RefCountedObject<VideoFrameWrapper>; 71 friend class rtc::RefCountedObject<VideoFrameWrapper>;
74 72
75 scoped_refptr<media::VideoFrame> frame_; 73 scoped_refptr<media::VideoFrame> frame_;
76 }; 74 };
77 75
78 } // anonymous namespace 76 } // anonymous namespace
79 77
80 // A cricket::VideoFrameFactory for media::VideoFrame. The purpose of this 78 // A cricket::VideoFrameFactory for media::VideoFrame. The purpose of this
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 DCHECK(frame_factory_ == frame_factory()); 276 DCHECK(frame_factory_ == frame_factory());
279 frame_factory_->SetFrame(frame, elapsed_time); 277 frame_factory_->SetFrame(frame, elapsed_time);
280 278
281 // This signals to libJingle that a new VideoFrame is available. 279 // This signals to libJingle that a new VideoFrame is available.
282 SignalFrameCaptured(this, frame_factory_->GetCapturedFrame()); 280 SignalFrameCaptured(this, frame_factory_->GetCapturedFrame());
283 281
284 frame_factory_->ReleaseFrame(); // Release the frame ASAP. 282 frame_factory_->ReleaseFrame(); // Release the frame ASAP.
285 } 283 }
286 284
287 } // namespace content 285 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/media_stream_remote_video_source.cc ('k') | third_party/libjingle/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698