Replace rtc::Optional with absl::optional in audio, call and video
This is a no-op change because rtc::Optional is an alias to absl::optional
This CL generated by running script with parameters 'audio call video':
#!/bin/bash
find $@ -type f \( -name \*.h -o -name \*.cc \) \
-exec sed -i 's|rtc::Optional|absl::optional|g' {} \+ \
-exec sed -i 's|rtc::nullopt|absl::nullopt|g' {} \+ \
-exec sed -i 's|#include "api/optional.h"|#include "absl/types/optional.h"|' {} \+
find $@ -type f -name BUILD.gn \
-exec sed -r -i 's|"(../)*api:optional"|"//third_party/abseil-cpp/absl/types:optional"|' {} \+;
git cl format
Bug: webrtc:9078
Change-Id: I02c5db956846a88a268a300ba086703a02d62e36
Reviewed-on: https://webrtc-review.googlesource.com/83722
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23628}
This commit is contained in:
committed by
Commit Bot
parent
e61d72b37c
commit
b9b146c9fe
@ -180,8 +180,8 @@ class AdaptingFrameForwarder : public test::FrameForwarder {
|
||||
return last_wants_;
|
||||
}
|
||||
|
||||
rtc::Optional<int> last_sent_width() const { return last_width_; }
|
||||
rtc::Optional<int> last_sent_height() const { return last_height_; }
|
||||
absl::optional<int> last_sent_width() const { return last_width_; }
|
||||
absl::optional<int> last_sent_height() const { return last_height_; }
|
||||
|
||||
void IncomingCapturedFrame(const VideoFrame& video_frame) override {
|
||||
int cropped_width = 0;
|
||||
@ -201,8 +201,8 @@ class AdaptingFrameForwarder : public test::FrameForwarder {
|
||||
last_width_.emplace(adapted_frame.width());
|
||||
last_height_.emplace(adapted_frame.height());
|
||||
} else {
|
||||
last_width_ = rtc::nullopt;
|
||||
last_height_ = rtc::nullopt;
|
||||
last_width_ = absl::nullopt;
|
||||
last_height_ = absl::nullopt;
|
||||
}
|
||||
} else {
|
||||
test::FrameForwarder::IncomingCapturedFrame(video_frame);
|
||||
@ -223,8 +223,8 @@ class AdaptingFrameForwarder : public test::FrameForwarder {
|
||||
cricket::VideoAdapter adapter_;
|
||||
bool adaptation_enabled_ RTC_GUARDED_BY(crit_);
|
||||
rtc::VideoSinkWants last_wants_ RTC_GUARDED_BY(crit_);
|
||||
rtc::Optional<int> last_width_;
|
||||
rtc::Optional<int> last_height_;
|
||||
absl::optional<int> last_width_;
|
||||
absl::optional<int> last_height_;
|
||||
};
|
||||
|
||||
class MockableSendStatisticsProxy : public SendStatisticsProxy {
|
||||
@ -253,7 +253,7 @@ class MockableSendStatisticsProxy : public SendStatisticsProxy {
|
||||
|
||||
private:
|
||||
rtc::CriticalSection lock_;
|
||||
rtc::Optional<VideoSendStream::Stats> mock_stats_ RTC_GUARDED_BY(lock_);
|
||||
absl::optional<VideoSendStream::Stats> mock_stats_ RTC_GUARDED_BY(lock_);
|
||||
};
|
||||
|
||||
class MockBitrateObserver : public VideoBitrateAllocationObserver {
|
||||
|
||||
Reference in New Issue
Block a user