OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import "RTCVideoRendererAdapter+Private.h" | 11 #import "RTCVideoRendererAdapter+Private.h" |
12 | 12 |
13 #import "RTCVideoFrame+Private.h" | 13 #import "RTCVideoFrame+Private.h" |
14 | 14 |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
| 17 #include "webrtc/base/timeutils.h" |
| 18 |
17 namespace webrtc { | 19 namespace webrtc { |
18 | 20 |
19 class VideoRendererAdapter | 21 class VideoRendererAdapter |
20 : public rtc::VideoSinkInterface<webrtc::VideoFrame> { | 22 : public rtc::VideoSinkInterface<webrtc::VideoFrame> { |
21 public: | 23 public: |
22 VideoRendererAdapter(RTCVideoRendererAdapter* adapter) { | 24 VideoRendererAdapter(RTCVideoRendererAdapter* adapter) { |
23 adapter_ = adapter; | 25 adapter_ = adapter; |
24 size_ = CGSizeZero; | 26 size_ = CGSizeZero; |
25 } | 27 } |
26 | 28 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 _adapter.reset(new webrtc::VideoRendererAdapter(self)); | 63 _adapter.reset(new webrtc::VideoRendererAdapter(self)); |
62 } | 64 } |
63 return self; | 65 return self; |
64 } | 66 } |
65 | 67 |
66 - (rtc::VideoSinkInterface<webrtc::VideoFrame> *)nativeVideoRenderer { | 68 - (rtc::VideoSinkInterface<webrtc::VideoFrame> *)nativeVideoRenderer { |
67 return _adapter.get(); | 69 return _adapter.get(); |
68 } | 70 } |
69 | 71 |
70 @end | 72 @end |
OLD | NEW |