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 #ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_IMP
L_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_IMP
L_H_ |
12 #define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_IMP
L_H_ | 12 #define WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_IMP
L_H_ |
13 | 13 |
14 #include <jni.h> | 14 #include <jni.h> |
15 | 15 |
16 #include <map> | 16 #include <map> |
17 | 17 |
| 18 #include "webrtc/base/platform_thread.h" |
18 #include "webrtc/modules/video_render/i_video_render.h" | 19 #include "webrtc/modules/video_render/i_video_render.h" |
19 #include "webrtc/system_wrappers/include/thread_wrapper.h" | |
20 | 20 |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 //#define ANDROID_LOG | 24 //#define ANDROID_LOG |
25 | 25 |
26 class CriticalSectionWrapper; | 26 class CriticalSectionWrapper; |
27 class EventWrapper; | 27 class EventWrapper; |
28 | 28 |
29 // The object a module user uses to send new frames to the java renderer | 29 // The object a module user uses to send new frames to the java renderer |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Map with streams to render. | 138 // Map with streams to render. |
139 typedef std::map<int32_t, AndroidStream*> AndroidStreamMap; | 139 typedef std::map<int32_t, AndroidStream*> AndroidStreamMap; |
140 AndroidStreamMap _streamsMap; | 140 AndroidStreamMap _streamsMap; |
141 // True if the _javaRenderThread thread shall be detached from the JVM. | 141 // True if the _javaRenderThread thread shall be detached from the JVM. |
142 bool _javaShutDownFlag; | 142 bool _javaShutDownFlag; |
143 EventWrapper& _javaShutdownEvent; | 143 EventWrapper& _javaShutdownEvent; |
144 EventWrapper& _javaRenderEvent; | 144 EventWrapper& _javaRenderEvent; |
145 int64_t _lastJavaRenderEvent; | 145 int64_t _lastJavaRenderEvent; |
146 JNIEnv* _javaRenderJniEnv; // JNIEnv for the java render thread. | 146 JNIEnv* _javaRenderJniEnv; // JNIEnv for the java render thread. |
147 rtc::scoped_ptr<ThreadWrapper> _javaRenderThread; | 147 rtc::scoped_ptr<PlatformThread> _javaRenderThread; |
148 }; | 148 }; |
149 | 149 |
150 } // namespace webrtc | 150 } // namespace webrtc |
151 | 151 |
152 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_
IMPL_H_ | 152 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_
IMPL_H_ |
OLD | NEW |