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:
@ -21,9 +21,9 @@ const int kMotionMagnitudeThreshold = 8 * 3;
|
||||
const int kSumDiffThreshold = 16 * 16 * 2;
|
||||
const int kSumDiffThresholdHigh = 600;
|
||||
|
||||
rtc::scoped_ptr<DenoiserFilter> DenoiserFilter::Create(
|
||||
std::unique_ptr<DenoiserFilter> DenoiserFilter::Create(
|
||||
bool runtime_cpu_detection) {
|
||||
rtc::scoped_ptr<DenoiserFilter> filter;
|
||||
std::unique_ptr<DenoiserFilter> filter;
|
||||
|
||||
if (runtime_cpu_detection) {
|
||||
// If we know the minimum architecture at compile time, avoid CPU detection.
|
||||
|
||||
@ -11,7 +11,8 @@
|
||||
#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_H_
|
||||
#define WEBRTC_MODULES_VIDEO_PROCESSING_UTIL_DENOISER_FILTER_H_
|
||||
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/modules/include/module_common_types.h"
|
||||
#include "webrtc/modules/video_processing/include/video_processing_defines.h"
|
||||
|
||||
@ -31,7 +32,7 @@ struct DenoiseMetrics {
|
||||
|
||||
class DenoiserFilter {
|
||||
public:
|
||||
static rtc::scoped_ptr<DenoiserFilter> Create(bool runtime_cpu_detection);
|
||||
static std::unique_ptr<DenoiserFilter> Create(bool runtime_cpu_detection);
|
||||
|
||||
virtual ~DenoiserFilter() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user