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

Unified Diff: media/cast/logging/encoding_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/encoding_event_subscriber.h
diff --git a/media/cast/logging/encoding_event_subscriber.h b/media/cast/logging/encoding_event_subscriber.h
index f72fe33b534d90e7257ac492e192cac98d90f4ad..425b2cd9fecba8a987dbd6002a81fa7cc1aed163 100644
--- a/media/cast/logging/encoding_event_subscriber.h
+++ b/media/cast/logging/encoding_event_subscriber.h
@@ -65,11 +65,11 @@ class EncodingEventSubscriber : public RawEventSubscriber {
PacketEventList* packet_events);
private:
- typedef std::map<RtpTimestamp,
- linked_ptr<media::cast::proto::AggregatedFrameEvent> >
+ typedef std::map<RtpTimeDelta,
+ linked_ptr<media::cast::proto::AggregatedFrameEvent>>
FrameEventMap;
- typedef std::map<RtpTimestamp,
- linked_ptr<media::cast::proto::AggregatedPacketEvent> >
+ typedef std::map<RtpTimeDelta,
+ linked_ptr<media::cast::proto::AggregatedPacketEvent>>
PacketEventMap;
// Transfer up to |max_num_entries| smallest entries from |frame_event_map_|
@@ -88,7 +88,7 @@ class EncodingEventSubscriber : public RawEventSubscriber {
// Returns the difference between |rtp_timestamp| and |first_rtp_timestamp_|.
// Sets |first_rtp_timestamp_| if it is not already set.
- RtpTimestamp GetRelativeRtpTimestamp(RtpTimestamp rtp_timestamp);
+ RtpTimeDelta GetRelativeRtpTimestamp(RtpTimeTicks rtp_timestamp);
// Clears the maps and first RTP timestamp seen.
void Reset();
@@ -111,7 +111,7 @@ class EncodingEventSubscriber : public RawEventSubscriber {
bool seen_first_rtp_timestamp_;
// Set to RTP timestamp of first event encountered after a |Reset()|.
- RtpTimestamp first_rtp_timestamp_;
+ RtpTimeTicks first_rtp_timestamp_;
DISALLOW_COPY_AND_ASSIGN(EncodingEventSubscriber);
};

Powered by Google App Engine
This is Rietveld 408576698