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

Side by Side Diff: content/renderer/media/webrtc/webrtc_video_frame_adapter.h

Issue 1454053002: Update common_video/interface -> common_video/include. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_
7 7
8 #include "media/base/video_frame.h" 8 #include "media/base/video_frame.h"
9 #include "third_party/webrtc/common_video/interface/video_frame_buffer.h" 9 #include "third_party/webrtc/common_video/include/video_frame_buffer.h"
10 10
11 namespace content { 11 namespace content {
12 // Thin adapter from media::VideoFrame to webrtc::VideoFrameBuffer. This 12 // Thin adapter from media::VideoFrame to webrtc::VideoFrameBuffer. This
13 // implementation is read-only and will return null if trying to get a 13 // implementation is read-only and will return null if trying to get a
14 // non-const pointer to the pixel data. This object will be accessed from 14 // non-const pointer to the pixel data. This object will be accessed from
15 // different threads, but that's safe since it's read-only. 15 // different threads, but that's safe since it's read-only.
16 class WebRtcVideoFrameAdapter : public webrtc::VideoFrameBuffer { 16 class WebRtcVideoFrameAdapter : public webrtc::VideoFrameBuffer {
17 public: 17 public:
18 explicit WebRtcVideoFrameAdapter( 18 explicit WebRtcVideoFrameAdapter(
19 const scoped_refptr<media::VideoFrame>& frame); 19 const scoped_refptr<media::VideoFrame>& frame);
(...skipping 14 matching lines...) Expand all
34 34
35 protected: 35 protected:
36 ~WebRtcVideoFrameAdapter() override; 36 ~WebRtcVideoFrameAdapter() override;
37 37
38 scoped_refptr<media::VideoFrame> frame_; 38 scoped_refptr<media::VideoFrame> frame_;
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_ 43 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698