Update internal SW codecs to return unique_ptrs
TBR=stefan@webrtc.org Bug: webrtc:7925 Change-Id: I84239b071a2608d928f09b06809090eec5eafb14 Reviewed-on: https://webrtc-review.googlesource.com/21165 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20650}
This commit is contained in:
committed by
Commit Bot
parent
8f91f1ee71
commit
4fe6adc06a
@ -12,6 +12,8 @@
|
||||
#ifndef MODULES_VIDEO_CODING_CODECS_VP9_INCLUDE_VP9_H_
|
||||
#define MODULES_VIDEO_CODING_CODECS_VP9_INCLUDE_VP9_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "modules/video_coding/include/video_codec_interface.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -19,7 +21,7 @@ namespace webrtc {
|
||||
class VP9Encoder : public VideoEncoder {
|
||||
public:
|
||||
static bool IsSupported();
|
||||
static VP9Encoder* Create();
|
||||
static std::unique_ptr<VP9Encoder> Create();
|
||||
|
||||
virtual ~VP9Encoder() {}
|
||||
};
|
||||
@ -27,7 +29,7 @@ class VP9Encoder : public VideoEncoder {
|
||||
class VP9Decoder : public VideoDecoder {
|
||||
public:
|
||||
static bool IsSupported();
|
||||
static VP9Decoder* Create();
|
||||
static std::unique_ptr<VP9Decoder> Create();
|
||||
|
||||
virtual ~VP9Decoder() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user