#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/mojo/services/webrtc_video_perf_recorder.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
namespace media {
namespace {
constexpr int EncodeOrDecodeIndex(bool is_decode) { … }
}
void WebrtcVideoPerfRecorder::Create(
media::WebrtcVideoPerfHistory* webrtc_video_perf_history,
mojo::PendingReceiver<media::mojom::WebrtcVideoPerfRecorder> receiver) { … }
WebrtcVideoPerfRecorder::WebrtcVideoPerfRecorder(
WebrtcVideoPerfHistory::SaveCallback save_cb)
: … { … }
WebrtcVideoPerfRecorder::~WebrtcVideoPerfRecorder() { … }
void WebrtcVideoPerfRecorder::UpdateRecord(
media::mojom::WebrtcPredictionFeaturesPtr features,
media::mojom::WebrtcVideoStatsPtr video_stats) { … }
void WebrtcVideoPerfRecorder::StartNewRecord(
media::mojom::WebrtcPredictionFeaturesPtr features) { … }
void WebrtcVideoPerfRecorder::FinalizeRecord(int encode_or_decode_index) { … }
}