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

Unified Diff: media/base/pipeline_impl.cc

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted all content/ changes, API now in Renderer Created 4 years, 7 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/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index e282a5e7f57eea8399c3b8e992ee6e075c7b9610..78b11ecbd784f3e6a262694af66606838adca40a 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -246,6 +246,12 @@ void PipelineImpl::SetCdm(CdmContext* cdm_context,
cdm_attached_cb));
}
+bool PipelineImpl::CanSuspend() const {
+ DCHECK(media_task_runner_->BelongsToCurrentThread());
+ DCHECK(renderer_);
sandersd (OOO until July 31) 2016/05/23 18:41:58 Since CanSuspend() can be called before Start(), a
alokp 2016/05/23 20:32:01 I am also working on a patch that moves the render
+ return renderer_->AllowSuspend();
+}
+
void PipelineImpl::SetErrorForTesting(PipelineStatus status) {
OnError(status);
}

Powered by Google App Engine
This is Rietveld 408576698