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

Unified Diff: media/renderers/video_renderer_impl.cc

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: Added tests to verify no rendering happens for disabled tracks Created 4 years, 6 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
Index: media/renderers/video_renderer_impl.cc
diff --git a/media/renderers/video_renderer_impl.cc b/media/renderers/video_renderer_impl.cc
index 683005303287b0bddd3b98ac80f76eade77a13bf..527cf9245f3e6dd377ba3338f7e848275797ae19 100644
--- a/media/renderers/video_renderer_impl.cc
+++ b/media/renderers/video_renderer_impl.cc
@@ -190,6 +190,7 @@ scoped_refptr<VideoFrame> VideoRendererImpl::Render(
(!frames_decoded_ && was_background_rendering_))) {
// Do not set |buffering_state_| here as the lock in FrameReady() may be
// held already and it fire the state changes in the wrong order.
+ DVLOG(3) << __FUNCTION__ << " posted TransitionToHaveNothing.";
task_runner_->PostTask(
FROM_HERE, base::Bind(&VideoRendererImpl::TransitionToHaveNothing,
weak_factory_.GetWeakPtr()));
@@ -442,6 +443,7 @@ bool VideoRendererImpl::HaveEnoughData_Locked() {
}
void VideoRendererImpl::TransitionToHaveEnough_Locked() {
+ DVLOG(3) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK_EQ(buffering_state_, BUFFERING_HAVE_NOTHING);
lock_.AssertAcquired();
@@ -453,6 +455,7 @@ void VideoRendererImpl::TransitionToHaveEnough_Locked() {
}
void VideoRendererImpl::TransitionToHaveNothing() {
+ DVLOG(3) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread());
base::AutoLock auto_lock(lock_);

Powered by Google App Engine
This is Rietveld 408576698