Commit a62dfabc authored by scherkus's avatar scherkus Committed by Commit bot

Tweak some DVLOGs in media code.

As a follow up to 792fb3d7, brings VideoRendererImpl in
line with AudioRendererImpl and also increases the DVLOG
level for the high-frequency CurrentMediaTime() function.

TBR=xhwang

Review URL: https://codereview.chromium.org/529333002

Cr-Commit-Position: refs/heads/master@{#293087}
parent cf3f6702
...@@ -152,7 +152,7 @@ void AudioRendererImpl::SetMediaTime(base::TimeDelta time) { ...@@ -152,7 +152,7 @@ void AudioRendererImpl::SetMediaTime(base::TimeDelta time) {
} }
base::TimeDelta AudioRendererImpl::CurrentMediaTime() { base::TimeDelta AudioRendererImpl::CurrentMediaTime() {
DVLOG(1) << __FUNCTION__; DVLOG(2) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread()); DCHECK(task_runner_->BelongsToCurrentThread());
// TODO(scherkus): Finish implementing when ready to switch Pipeline to using // TODO(scherkus): Finish implementing when ready to switch Pipeline to using
......
...@@ -68,6 +68,7 @@ VideoRendererImpl::~VideoRendererImpl() { ...@@ -68,6 +68,7 @@ VideoRendererImpl::~VideoRendererImpl() {
} }
void VideoRendererImpl::Flush(const base::Closure& callback) { void VideoRendererImpl::Flush(const base::Closure& callback) {
DVLOG(1) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread()); DCHECK(task_runner_->BelongsToCurrentThread());
base::AutoLock auto_lock(lock_); base::AutoLock auto_lock(lock_);
DCHECK_EQ(state_, kPlaying); DCHECK_EQ(state_, kPlaying);
...@@ -90,6 +91,7 @@ void VideoRendererImpl::Flush(const base::Closure& callback) { ...@@ -90,6 +91,7 @@ void VideoRendererImpl::Flush(const base::Closure& callback) {
} }
void VideoRendererImpl::StartPlaying() { void VideoRendererImpl::StartPlaying() {
DVLOG(1) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread()); DCHECK(task_runner_->BelongsToCurrentThread());
base::AutoLock auto_lock(lock_); base::AutoLock auto_lock(lock_);
DCHECK_EQ(state_, kFlushed); DCHECK_EQ(state_, kFlushed);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment