Add const to methods in DecodedFramesHistory

Bug: webrtc:13343
Change-Id: I3f4e015e683f4003bb038424646cb51ae26c76fa
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236848
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35329}
This commit is contained in:
Evan Shrubsole
2021-11-10 11:35:10 +01:00
committed by WebRTC LUCI CQ
parent dfec7a664b
commit 7de81e2717
2 changed files with 7 additions and 6 deletions

View File

@ -31,12 +31,12 @@ class DecodedFramesHistory {
void InsertDecoded(int64_t frame_id, uint32_t timestamp);
// Query if the following (frame_id, spatial_id) pair was inserted before.
// Should be at most less by window_size-1 than the last inserted frame id.
bool WasDecoded(int64_t frame_id);
bool WasDecoded(int64_t frame_id) const;
void Clear();
absl::optional<int64_t> GetLastDecodedFrameId();
absl::optional<uint32_t> GetLastDecodedFrameTimestamp();
absl::optional<int64_t> GetLastDecodedFrameId() const;
absl::optional<uint32_t> GetLastDecodedFrameTimestamp() const;
private:
int FrameIdToIndex(int64_t frame_id) const;