Replace scoped_ptr with unique_ptr in webrtc/modules/video_*/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1738863002 Cr-Commit-Position: refs/heads/master@{#11836}
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_LINUX_VIDEO_CAPTURE_LINUX_H_
|
||||
#define WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_LINUX_VIDEO_CAPTURE_LINUX_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/base/platform_thread.h"
|
||||
#include "webrtc/common_types.h"
|
||||
#include "webrtc/modules/video_capture/video_capture_impl.h"
|
||||
@ -39,8 +41,8 @@ private:
|
||||
bool AllocateVideoBuffers();
|
||||
bool DeAllocateVideoBuffers();
|
||||
|
||||
// TODO(pbos): Stop using scoped_ptr and resetting the thread.
|
||||
rtc::scoped_ptr<rtc::PlatformThread> _captureThread;
|
||||
// TODO(pbos): Stop using unique_ptr and resetting the thread.
|
||||
std::unique_ptr<rtc::PlatformThread> _captureThread;
|
||||
CriticalSectionWrapper* _captureCritSect;
|
||||
|
||||
int32_t _deviceId;
|
||||
|
||||
Reference in New Issue
Block a user