| 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 #include <memory> |
| 17 | 18 |
| 18 #include "webrtc/base/platform_thread.h" | 19 #include "webrtc/base/platform_thread.h" |
| 19 #include "webrtc/modules/video_render/i_video_render.h" | 20 #include "webrtc/modules/video_render/i_video_render.h" |
| 20 | 21 |
| 21 | 22 |
| 22 namespace webrtc { | 23 namespace webrtc { |
| 23 | 24 |
| 24 //#define ANDROID_LOG | 25 //#define ANDROID_LOG |
| 25 | 26 |
| 26 class CriticalSectionWrapper; | 27 class CriticalSectionWrapper; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 138 |
| 138 // Map with streams to render. | 139 // Map with streams to render. |
| 139 typedef std::map<int32_t, AndroidStream*> AndroidStreamMap; | 140 typedef std::map<int32_t, AndroidStream*> AndroidStreamMap; |
| 140 AndroidStreamMap _streamsMap; | 141 AndroidStreamMap _streamsMap; |
| 141 // True if the _javaRenderThread thread shall be detached from the JVM. | 142 // True if the _javaRenderThread thread shall be detached from the JVM. |
| 142 bool _javaShutDownFlag; | 143 bool _javaShutDownFlag; |
| 143 EventWrapper& _javaShutdownEvent; | 144 EventWrapper& _javaShutdownEvent; |
| 144 EventWrapper& _javaRenderEvent; | 145 EventWrapper& _javaRenderEvent; |
| 145 int64_t _lastJavaRenderEvent; | 146 int64_t _lastJavaRenderEvent; |
| 146 JNIEnv* _javaRenderJniEnv; // JNIEnv for the java render thread. | 147 JNIEnv* _javaRenderJniEnv; // JNIEnv for the java render thread. |
| 147 // TODO(pbos): Remove scoped_ptr and use the member directly. | 148 // TODO(pbos): Remove unique_ptr and use the member directly. |
| 148 rtc::scoped_ptr<rtc::PlatformThread> _javaRenderThread; | 149 std::unique_ptr<rtc::PlatformThread> _javaRenderThread; |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 } // namespace webrtc | 152 } // namespace webrtc |
| 152 | 153 |
| 153 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_
IMPL_H_ | 154 #endif // WEBRTC_MODULES_VIDEO_RENDER_MAIN_SOURCE_ANDROID_VIDEO_RENDER_ANDROID_
IMPL_H_ |
| OLD | NEW |