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

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

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.h
diff --git a/media/cast/logging/stats_event_subscriber.h b/media/cast/logging/stats_event_subscriber.h
index 36d5110777333216a09fc846c28f6fa81eb594b7..f831cd80a6d5633d666563329f8e3e48f8a78062 100644
--- a/media/cast/logging/stats_event_subscriber.h
+++ b/media/cast/logging/stats_event_subscriber.h
@@ -182,10 +182,9 @@ class StatsEventSubscriber : public RawEventSubscriber {
typedef std::map<CastStat, double> StatsMap;
typedef std::map<CastStat, linked_ptr<SimpleHistogram> > HistogramMap;
- typedef std::map<RtpTimestamp, FrameInfo> FrameInfoMap;
- typedef std::map<
- std::pair<RtpTimestamp, uint16>,
- std::pair<base::TimeTicks, CastLoggingEvent> >
+ typedef std::map<RtpTimeTicks, FrameInfo> FrameInfoMap;
+ typedef std::map<std::pair<RtpTimeTicks, uint16>,
+ std::pair<base::TimeTicks, CastLoggingEvent>>
PacketEventTimeMap;
typedef std::map<CastLoggingEvent, FrameLogStats> FrameStatsMap;
typedef std::map<CastLoggingEvent, PacketLogStats> PacketStatsMap;
@@ -203,7 +202,7 @@ class StatsEventSubscriber : public RawEventSubscriber {
void UpdateFirstLastEventTime(base::TimeTicks timestamp,
bool is_receiver_event);
bool GetReceiverOffset(base::TimeDelta* offset);
- void MaybeInsertFrameInfo(RtpTimestamp rtp_timestamp,
+ void MaybeInsertFrameInfo(RtpTimeTicks rtp_timestamp,
const FrameInfo& frame_info);
void RecordFrameCaptureTime(const FrameEvent& frame_event);
void RecordCaptureLatency(const FrameEvent& frame_event);

Powered by Google App Engine
This is Rietveld 408576698