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

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: Speculative workaround fix for win8_chromium_ng compile error. 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
« no previous file with comments | « media/cast/common/rtp_time_unittest.cc ('k') | media/cast/logging/encoding_event_subscriber.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a6790d09cd69c50dc0cc1ed1936cb9a9160acb62..ba077c0080cfa969ea7a58c628fca58af1769bc8 100644
--- a/media/cast/logging/encoding_event_subscriber.h
+++ b/media/cast/logging/encoding_event_subscriber.h
@@ -68,11 +68,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_|
@@ -91,7 +91,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();
@@ -114,7 +114,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);
};
« no previous file with comments | « media/cast/common/rtp_time_unittest.cc ('k') | media/cast/logging/encoding_event_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698