Deprecate EventFactory and delete all usage.
Will be deleted as soon as downstream calls of VideoCodingModule::Create are updated. Tbr: sprang@webrtc.org # Trivial change in video/ Bug: webrtc:3380 Change-Id: Iaeb6da2fb68991225fe9086ddddd4a553e1620b4 Reviewed-on: https://webrtc-review.googlesource.com/c/107890 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25554}
This commit is contained in:
@ -27,6 +27,7 @@
|
||||
#include "modules/include/module.h"
|
||||
#include "modules/include/module_common_types.h"
|
||||
#include "modules/video_coding/include/video_coding_defines.h"
|
||||
#include "rtc_base/deprecation.h"
|
||||
#include "system_wrappers/include/event_wrapper.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -37,6 +38,7 @@ class VideoDecoder;
|
||||
class VideoEncoder;
|
||||
struct CodecSpecificInfo;
|
||||
|
||||
// DEPRECATED
|
||||
class EventFactory {
|
||||
public:
|
||||
virtual ~EventFactory() {}
|
||||
@ -44,7 +46,7 @@ class EventFactory {
|
||||
virtual EventWrapper* CreateEvent() = 0;
|
||||
};
|
||||
|
||||
class EventFactoryImpl : public EventFactory {
|
||||
class RTC_DEPRECATED EventFactoryImpl : public EventFactory {
|
||||
public:
|
||||
~EventFactoryImpl() override {}
|
||||
|
||||
@ -68,8 +70,13 @@ class VideoCodingModule : public Module {
|
||||
public:
|
||||
enum SenderNackMode { kNackNone, kNackAll, kNackSelective };
|
||||
|
||||
RTC_DEPRECATED
|
||||
static VideoCodingModule* Create(Clock* clock,
|
||||
EventFactory* /* event_factory*/) {
|
||||
return Create(clock);
|
||||
}
|
||||
// DEPRECATED.
|
||||
static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory);
|
||||
static VideoCodingModule* Create(Clock* clock);
|
||||
|
||||
/*
|
||||
* Sender
|
||||
|
Reference in New Issue
Block a user