| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #if !defined(__has_feature) || !__has_feature(objc_arc) | 28 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 29 #error "This file requires ARC support." | 29 #error "This file requires ARC support." |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #import "RTCI420Frame+Internal.h" |
| 32 #import "RTCVideoRendererAdapter.h" | 33 #import "RTCVideoRendererAdapter.h" |
| 33 #import "RTCI420Frame+Internal.h" | |
| 34 | 34 |
| 35 namespace webrtc { | 35 namespace webrtc { |
| 36 | 36 |
| 37 class RTCVideoRendererNativeAdapter : public VideoRendererInterface { | 37 class RTCVideoRendererNativeAdapter : public VideoRendererInterface { |
| 38 public: | 38 public: |
| 39 RTCVideoRendererNativeAdapter(RTCVideoRendererAdapter* adapter) { | 39 RTCVideoRendererNativeAdapter(RTCVideoRendererAdapter* adapter) { |
| 40 _adapter = adapter; | 40 _adapter = adapter; |
| 41 _size = CGSizeZero; | 41 _size = CGSizeZero; |
| 42 } | 42 } |
| 43 | 43 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 70 _adapter.reset(new webrtc::RTCVideoRendererNativeAdapter(self)); | 70 _adapter.reset(new webrtc::RTCVideoRendererNativeAdapter(self)); |
| 71 } | 71 } |
| 72 return self; | 72 return self; |
| 73 } | 73 } |
| 74 | 74 |
| 75 - (webrtc::VideoRendererInterface*)nativeVideoRenderer { | 75 - (webrtc::VideoRendererInterface*)nativeVideoRenderer { |
| 76 return _adapter.get(); | 76 return _adapter.get(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 @end | 79 @end |
| OLD | NEW |