Migrate video/ except video/end_to_end_tests and video/adaptation to webrtc::Mutex.
Also migrates test/ partly. Bug: webrtc:11567 Change-Id: If5b2eae65c5f297f364b6e3c67f94946a09b4a96 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178862 Commit-Queue: Markus Handell <handellm@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31672}
This commit is contained in:
committed by
Commit Bot
parent
a9e1b49704
commit
a376518817
@ -12,7 +12,7 @@
|
||||
|
||||
#include "api/video/video_frame.h"
|
||||
#include "api/video/video_source_interface.h"
|
||||
#include "rtc_base/critical_section.h"
|
||||
#include "rtc_base/synchronization/mutex.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
@ -27,25 +27,25 @@ class FrameForwarder : public rtc::VideoSourceInterface<VideoFrame> {
|
||||
~FrameForwarder() override;
|
||||
// Forwards |video_frame| to the registered |sink_|.
|
||||
virtual void IncomingCapturedFrame(const VideoFrame& video_frame)
|
||||
RTC_LOCKS_EXCLUDED(crit_);
|
||||
rtc::VideoSinkWants sink_wants() const RTC_LOCKS_EXCLUDED(crit_);
|
||||
bool has_sinks() const RTC_LOCKS_EXCLUDED(crit_);
|
||||
RTC_LOCKS_EXCLUDED(mutex_);
|
||||
rtc::VideoSinkWants sink_wants() const RTC_LOCKS_EXCLUDED(mutex_);
|
||||
bool has_sinks() const RTC_LOCKS_EXCLUDED(mutex_);
|
||||
|
||||
protected:
|
||||
rtc::VideoSinkWants sink_wants_locked() const
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
|
||||
void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink,
|
||||
const rtc::VideoSinkWants& wants)
|
||||
RTC_LOCKS_EXCLUDED(crit_) override;
|
||||
RTC_LOCKS_EXCLUDED(mutex_) override;
|
||||
void AddOrUpdateSinkLocked(rtc::VideoSinkInterface<VideoFrame>* sink,
|
||||
const rtc::VideoSinkWants& wants)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
|
||||
void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink)
|
||||
RTC_LOCKS_EXCLUDED(crit_) override;
|
||||
RTC_LOCKS_EXCLUDED(mutex_) override;
|
||||
|
||||
rtc::CriticalSection crit_;
|
||||
rtc::VideoSinkInterface<VideoFrame>* sink_ RTC_GUARDED_BY(crit_);
|
||||
rtc::VideoSinkWants sink_wants_ RTC_GUARDED_BY(crit_);
|
||||
mutable Mutex mutex_;
|
||||
rtc::VideoSinkInterface<VideoFrame>* sink_ RTC_GUARDED_BY(mutex_);
|
||||
rtc::VideoSinkWants sink_wants_ RTC_GUARDED_BY(mutex_);
|
||||
};
|
||||
|
||||
} // namespace test
|
||||
|
||||
Reference in New Issue
Block a user