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

Unified Diff: media/capture/content/smooth_event_sampler.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/capture/content/smooth_event_sampler.cc
diff --git a/media/capture/content/smooth_event_sampler.cc b/media/capture/content/smooth_event_sampler.cc
index 233ab008056ea96bcca4da265152e4877ca2d563..04af086f511457305f9624adb475b09d233f91b4 100644
--- a/media/capture/content/smooth_event_sampler.cc
+++ b/media/capture/content/smooth_event_sampler.cc
@@ -41,7 +41,7 @@ void SmoothEventSampler::ConsiderPresentationEvent(base::TimeTicks event_time) {
token_bucket_ = token_bucket_capacity_;
}
TRACE_COUNTER1("gpu.capture", "MirroringTokenBucketUsec",
- std::max<int64>(0, token_bucket_.InMicroseconds()));
+ std::max<int64_t>(0, token_bucket_.InMicroseconds()));
}
current_event_ = event_time;
}
@@ -55,7 +55,7 @@ void SmoothEventSampler::RecordSample() {
if (token_bucket_ < base::TimeDelta())
token_bucket_ = base::TimeDelta();
TRACE_COUNTER1("gpu.capture", "MirroringTokenBucketUsec",
- std::max<int64>(0, token_bucket_.InMicroseconds()));
+ std::max<int64_t>(0, token_bucket_.InMicroseconds()));
if (HasUnrecordedEvent()) {
last_sample_ = current_event_;

Powered by Google App Engine
This is Rietveld 408576698