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

Unified Diff: media/base/wall_clock_time_source.cc

Issue 551273004: Sprinkle some DVLOGs in media::WallClockTimeSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/wall_clock_time_source.cc
diff --git a/media/base/wall_clock_time_source.cc b/media/base/wall_clock_time_source.cc
index 5d826435576421913ab48ed8b313644420245721..408de93e05e830867278d3e667bc3ff4ad59abb2 100644
--- a/media/base/wall_clock_time_source.cc
+++ b/media/base/wall_clock_time_source.cc
@@ -19,6 +19,7 @@ WallClockTimeSource::~WallClockTimeSource() {
}
void WallClockTimeSource::StartTicking() {
+ DVLOG(1) << __FUNCTION__;
base::AutoLock auto_lock(lock_);
DCHECK(!ticking_);
ticking_ = true;
@@ -26,6 +27,7 @@ void WallClockTimeSource::StartTicking() {
}
void WallClockTimeSource::StopTicking() {
+ DVLOG(1) << __FUNCTION__;
base::AutoLock auto_lock(lock_);
DCHECK(ticking_);
base_time_ = CurrentMediaTime_Locked();
@@ -34,6 +36,7 @@ void WallClockTimeSource::StopTicking() {
}
void WallClockTimeSource::SetPlaybackRate(float playback_rate) {
+ DVLOG(1) << __FUNCTION__ << "(" << playback_rate << ")";
base::AutoLock auto_lock(lock_);
// Estimate current media time using old rate to use as a new base time for
// the new rate.
@@ -46,6 +49,7 @@ void WallClockTimeSource::SetPlaybackRate(float playback_rate) {
}
void WallClockTimeSource::SetMediaTime(base::TimeDelta time) {
+ DVLOG(1) << __FUNCTION__ << "(" << time.InMicroseconds() << ")";
base::AutoLock auto_lock(lock_);
CHECK(!ticking_);
base_time_ = time;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698