Use deque instead of list in DefaultVideoQualityAnalyzer.

Use deque instead of list in DefaultVideoQualityAnalyzer for frame ids
in the single video stream.

Bug: webrtc:10138
Change-Id: Ie4f004b6f2aa5facf216551a12bdafcf3fcddfee
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128574
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27178}
This commit is contained in:
Artem Titov 2019-03-19 15:39:17 +01:00 committed by Commit Bot
parent 2809cbb370
commit 608d801d14

View File

@ -13,7 +13,6 @@
#include <atomic>
#include <deque>
#include <list>
#include <map>
#include <memory>
#include <set>
@ -211,7 +210,7 @@ class DefaultVideoQualityAnalyzer : public VideoQualityAnalyzerInterface {
// frame_id2 and consider that frames as dropped and then compare received
// frame with the one from |captured_frames_in_flight_| with id frame_id3.
// Also we will put it into the |last_rendered_frame|.
std::list<uint16_t> frame_ids;
std::deque<uint16_t> frame_ids;
absl::optional<VideoFrame> last_rendered_frame = absl::nullopt;
absl::optional<Timestamp> last_rendered_frame_time = absl::nullopt;
};