Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: media/cast/logging/stats_event_subscriber.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/logging/stats_event_subscriber.cc
diff --git a/media/cast/logging/stats_event_subscriber.cc b/media/cast/logging/stats_event_subscriber.cc
index a254e634a8b1adba99e0eb3794b975ab20de88e6..0cdd9db0bff5278fb74559f53b3bdfc32f801baa 100644
--- a/media/cast/logging/stats_event_subscriber.cc
+++ b/media/cast/logging/stats_event_subscriber.cc
@@ -484,7 +484,7 @@ bool StatsEventSubscriber::GetReceiverOffset(base::TimeDelta* offset) {
return true;
}
-void StatsEventSubscriber::MaybeInsertFrameInfo(RtpTimestamp rtp_timestamp,
+void StatsEventSubscriber::MaybeInsertFrameInfo(RtpTimeTicks rtp_timestamp,
const FrameInfo& frame_info) {
// No need to insert if |rtp_timestamp| is the smaller than every key in the
// map as it is just going to get erased anyway.
@@ -596,7 +596,7 @@ void StatsEventSubscriber::UpdateLastResponseTime(
void StatsEventSubscriber::ErasePacketSentTime(
const PacketEvent& packet_event) {
- std::pair<RtpTimestamp, uint16> key(
+ std::pair<RtpTimeTicks, uint16> key(
std::make_pair(packet_event.rtp_timestamp, packet_event.packet_id));
packet_sent_times_.erase(key);
}
@@ -622,7 +622,7 @@ void StatsEventSubscriber::RecordPacketRelatedLatencies(
if (!GetReceiverOffset(&receiver_offset))
return;
- std::pair<RtpTimestamp, uint16> key(
+ std::pair<RtpTimeTicks, uint16> key(
std::make_pair(packet_event.rtp_timestamp, packet_event.packet_id));
PacketEventTimeMap::iterator it = packet_sent_times_.find(key);
if (it == packet_sent_times_.end()) {

Powered by Google App Engine
This is Rietveld 408576698