Remove RTC_DISALLOW_COPY_AND_ASSIGN from modules/
Bug: webrtc:13555, webrtc:13082 Change-Id: I2c2cbcbd918f0cfa970c1a964893220ba11d4b41 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/247960 Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: (Daniel.L) Byoungchan Lee <daniel.l@hpcnt.com> Cr-Commit-Position: refs/heads/main@{#35771}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
ce6170fcdf
commit
604fd2f1ab
@ -17,7 +17,6 @@
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/video/encoded_image.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
#include "rtc_base/system/file_wrapper.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -27,6 +26,10 @@ class IvfFileReader {
|
||||
// Creates IvfFileReader. Returns nullptr if error acquired.
|
||||
static std::unique_ptr<IvfFileReader> Create(FileWrapper file);
|
||||
~IvfFileReader();
|
||||
|
||||
IvfFileReader(const IvfFileReader&) = delete;
|
||||
IvfFileReader& operator=(const IvfFileReader&) = delete;
|
||||
|
||||
// Reinitializes reader. Returns false if any error acquired.
|
||||
bool Reset();
|
||||
|
||||
@ -72,8 +75,6 @@ class IvfFileReader {
|
||||
|
||||
absl::optional<FrameHeader> next_frame_header_;
|
||||
bool has_error_;
|
||||
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(IvfFileReader);
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
|
||||
#include "api/video/encoded_image.h"
|
||||
#include "api/video/video_codec_type.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
#include "rtc_base/system/file_wrapper.h"
|
||||
#include "rtc_base/time_utils.h"
|
||||
|
||||
@ -34,6 +33,9 @@ class IvfFileWriter {
|
||||
size_t byte_limit);
|
||||
~IvfFileWriter();
|
||||
|
||||
IvfFileWriter(const IvfFileWriter&) = delete;
|
||||
IvfFileWriter& operator=(const IvfFileWriter&) = delete;
|
||||
|
||||
bool WriteFrame(const EncodedImage& encoded_image, VideoCodecType codec_type);
|
||||
bool Close();
|
||||
|
||||
@ -57,8 +59,6 @@ class IvfFileWriter {
|
||||
bool using_capture_timestamps_;
|
||||
rtc::TimestampWrapAroundHandler wrap_handler_;
|
||||
FileWrapper file_;
|
||||
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(IvfFileWriter);
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
#include "api/video/video_bitrate_allocator.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
#include "rtc_base/experiments/rate_control_settings.h"
|
||||
#include "rtc_base/experiments/stable_target_rate_experiment.h"
|
||||
|
||||
@ -30,6 +29,9 @@ class SimulcastRateAllocator : public VideoBitrateAllocator {
|
||||
explicit SimulcastRateAllocator(const VideoCodec& codec);
|
||||
~SimulcastRateAllocator() override;
|
||||
|
||||
SimulcastRateAllocator(const SimulcastRateAllocator&) = delete;
|
||||
SimulcastRateAllocator& operator=(const SimulcastRateAllocator&) = delete;
|
||||
|
||||
VideoBitrateAllocation Allocate(
|
||||
VideoBitrateAllocationParameters parameters) override;
|
||||
const VideoCodec& GetCodec() const;
|
||||
@ -61,8 +63,6 @@ class SimulcastRateAllocator : public VideoBitrateAllocator {
|
||||
const RateControlSettings rate_control_settings_;
|
||||
std::vector<bool> stream_enabled_;
|
||||
bool legacy_conference_mode_;
|
||||
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(SimulcastRateAllocator);
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user