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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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/receiver_time_offset_estimator_impl.cc
diff --git a/media/cast/logging/receiver_time_offset_estimator_impl.cc b/media/cast/logging/receiver_time_offset_estimator_impl.cc
index d5116542d6bfbc08bfd4eceab9de1ab0d4f1bf63..db80fc4ab83b12bb9dd7eeeb7aff71b172de9d90 100644
--- a/media/cast/logging/receiver_time_offset_estimator_impl.cc
+++ b/media/cast/logging/receiver_time_offset_estimator_impl.cc
@@ -17,23 +17,23 @@ ReceiverTimeOffsetEstimatorImpl::BoundCalculator::BoundCalculator()
ReceiverTimeOffsetEstimatorImpl::BoundCalculator::~BoundCalculator() {}
void ReceiverTimeOffsetEstimatorImpl::BoundCalculator::SetSent(
- uint32 rtp,
- uint32 packet_id,
+ uint32_t rtp,
+ uint32_t packet_id,
bool audio,
base::TimeTicks t) {
- uint64 key = (static_cast<uint64>(rtp) << 32) | (packet_id << 1) |
- static_cast<uint64>(audio);
+ uint64_t key = (static_cast<uint64_t>(rtp) << 32) | (packet_id << 1) |
+ static_cast<uint64_t>(audio);
events_[key].first = t;
CheckUpdate(key);
}
void ReceiverTimeOffsetEstimatorImpl::BoundCalculator::SetReceived(
- uint32 rtp,
- uint16 packet_id,
+ uint32_t rtp,
+ uint16_t packet_id,
bool audio,
base::TimeTicks t) {
- uint64 key = (static_cast<uint64>(rtp) << 32) | (packet_id << 1) |
- static_cast<uint64>(audio);
+ uint64_t key = (static_cast<uint64_t>(rtp) << 32) | (packet_id << 1) |
+ static_cast<uint64_t>(audio);
events_[key].second = t;
CheckUpdate(key);
}
@@ -53,8 +53,8 @@ void ReceiverTimeOffsetEstimatorImpl::BoundCalculator::UpdateBound(
has_bound_ = true;
}
-void ReceiverTimeOffsetEstimatorImpl::BoundCalculator::CheckUpdate(
- uint64 key) {
+ void ReceiverTimeOffsetEstimatorImpl::BoundCalculator::CheckUpdate(
+ uint64_t key) {
const TimeTickPair& ticks = events_[key];
if (!ticks.first.is_null() && !ticks.second.is_null()) {
UpdateBound(ticks.first, ticks.second);

Powered by Google App Engine
This is Rietveld 408576698