OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 #include "testAPI.h" | 11 #include "testAPI.h" |
12 | 12 |
13 #include <iostream> | 13 #include <iostream> |
14 | 14 |
15 #import <Foundation/Foundation.h> | 15 #import <Foundation/Foundation.h> |
16 #import <Cocoa/Cocoa.h> | 16 #import <Cocoa/Cocoa.h> |
17 #import <AppKit/AppKit.h> | 17 #import <AppKit/AppKit.h> |
18 #import <QTKit/QTKit.h> | 18 #import <QTKit/QTKit.h> |
19 #include <sys/time.h> | 19 #include <sys/time.h> |
20 | 20 |
21 #import "webrtc/modules/video_render/mac/cocoa_render_view.h" | 21 #import "webrtc/modules/video_render/mac/cocoa_render_view.h" |
22 #include "webrtc/common_types.h" | 22 #include "webrtc/common_types.h" |
23 #include "webrtc/modules/include/module_common_types.h" | 23 #include "webrtc/modules/include/module_common_types.h" |
24 #include "webrtc/modules/utility/include/process_thread.h" | 24 #include "webrtc/modules/utility/include/process_thread.h" |
25 #include "webrtc/modules/video_render/video_render.h" | 25 #include "webrtc/modules/video_render/video_render.h" |
26 #include "webrtc/modules/video_render/video_render_defines.h" | 26 #include "webrtc/modules/video_render/video_render_defines.h" |
27 #include "webrtc/system_wrappers/include/tick_util.h" | |
28 #include "webrtc/system_wrappers/include/trace.h" | 27 #include "webrtc/system_wrappers/include/trace.h" |
29 | 28 |
30 using namespace webrtc; | 29 using namespace webrtc; |
31 | 30 |
32 int WebRtcCreateWindow(CocoaRenderView*& cocoaRenderer, int winNum, int width, i
nt height) | 31 int WebRtcCreateWindow(CocoaRenderView*& cocoaRenderer, int winNum, int width, i
nt height) |
33 { | 32 { |
34 // In Cocoa, rendering is not done directly to a window like in Windows and
Linux. | 33 // In Cocoa, rendering is not done directly to a window like in Windows and
Linux. |
35 // It is rendererd to a Subclass of NSOpenGLView | 34 // It is rendererd to a Subclass of NSOpenGLView |
36 | 35 |
37 // create cocoa container window | 36 // create cocoa container window |
(...skipping 22 matching lines...) Expand all Loading... |
60 | 59 |
61 CocoaRenderView* testWindow; | 60 CocoaRenderView* testWindow; |
62 WebRtcCreateWindow(testWindow, 0, 352, 288); | 61 WebRtcCreateWindow(testWindow, 0, 352, 288); |
63 VideoRenderType windowType = kRenderCocoa; | 62 VideoRenderType windowType = kRenderCocoa; |
64 void* window = (void*)testWindow; | 63 void* window = (void*)testWindow; |
65 | 64 |
66 RunVideoRenderTests(window, windowType); | 65 RunVideoRenderTests(window, windowType); |
67 | 66 |
68 [pool release]; | 67 [pool release]; |
69 } | 68 } |
OLD | NEW |