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 #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/interface/video_frame_buffer.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 int height() const override; | 23 int height() const override; |
24 | 24 |
25 const uint8_t* data(webrtc::PlaneType type) const override; | 25 const uint8_t* data(webrtc::PlaneType type) const override; |
26 | 26 |
27 uint8_t* data(webrtc::PlaneType type) override; | 27 uint8_t* data(webrtc::PlaneType type) override; |
28 | 28 |
29 int stride(webrtc::PlaneType type) const override; | 29 int stride(webrtc::PlaneType type) const override; |
30 | 30 |
31 void* native_handle() const override; | 31 void* native_handle() const override; |
32 | 32 |
33 // TODO(pbos): Replace virtual with override as soon as this change lands in | 33 rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override; |
34 // third_party/webrtc. | |
35 virtual rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer(); | |
36 | 34 |
37 friend class rtc::RefCountedObject<WebRtcVideoFrameAdapter>; | 35 friend class rtc::RefCountedObject<WebRtcVideoFrameAdapter>; |
38 | 36 |
39 protected: | 37 protected: |
40 ~WebRtcVideoFrameAdapter() override; | 38 ~WebRtcVideoFrameAdapter() override; |
41 | 39 |
42 scoped_refptr<media::VideoFrame> frame_; | 40 scoped_refptr<media::VideoFrame> frame_; |
43 }; | 41 }; |
44 | 42 |
45 } // namespace content | 43 } // namespace content |
46 | 44 |
47 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_ | 45 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_FRAME_ADAPTER_H_ |
OLD | NEW |