Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: webrtc/modules/video_render/android/video_render_android_impl.h

Issue 1738863002: Replace scoped_ptr with unique_ptr in webrtc/modules/video_*/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up4
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/video_denoiser.h ('k') | webrtc/modules/video_render/ios/video_render_ios_gles20.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698