OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 #import <AppKit/AppKit.h> | 12 #import <AppKit/AppKit.h> |
13 | 13 |
14 #include "webrtc/modules/video_render/mac/cocoa_render_view.h" | 14 #include "webrtc/modules/video_render/mac/cocoa_render_view.h" |
15 #include "webrtc/system_wrappers/interface/trace.h" | 15 #include "webrtc/system_wrappers/include/trace.h" |
16 | 16 |
17 using namespace webrtc; | 17 using namespace webrtc; |
18 | 18 |
19 @implementation CocoaRenderView | 19 @implementation CocoaRenderView |
20 | 20 |
21 -(void)initCocoaRenderView:(NSOpenGLPixelFormat*)fmt{ | 21 -(void)initCocoaRenderView:(NSOpenGLPixelFormat*)fmt{ |
22 | 22 |
23 self = [super initWithFrame:[self frame] pixelFormat:fmt]; | 23 self = [super initWithFrame:[self frame] pixelFormat:fmt]; |
24 if (self == nil){ | 24 if (self == nil){ |
25 | 25 |
(...skipping 20 matching lines...) Expand all Loading... |
46 WEBRTC_TRACE(kTraceError, kTraceVideoRenderer, 0, "%s:%d Could n
ot create instance", __FUNCTION__, __LINE__); | 46 WEBRTC_TRACE(kTraceError, kTraceVideoRenderer, 0, "%s:%d Could n
ot create instance", __FUNCTION__, __LINE__); |
47 } | 47 } |
48 | 48 |
49 _nsOpenGLContext = [self openGLContext]; | 49 _nsOpenGLContext = [self openGLContext]; |
50 | 50 |
51 } | 51 } |
52 | 52 |
53 @end | 53 @end |
54 | 54 |
55 | 55 |
OLD | NEW |