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

Unified Diff: media/base/pipeline_impl.cc

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes media_bit_reader_fuzzer link error 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 e32e5602a933f9bb0aac12133dd141e194c0411e..4b83701c5a6963dce8b28d3673183fce8c36cc5f 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -399,6 +399,22 @@ void PipelineImpl::OnWaitingForDecryptionKey() {
base::Bind(&Pipeline::Client::OnWaitingForDecryptionKey, weak_client_));
}
+void PipelineImpl::OnVideoNaturalSizeChange(const gfx::Size& size) {
+ DCHECK(media_task_runner_->BelongsToCurrentThread());
+
+ main_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&Pipeline::Client::OnVideoNaturalSizeChange,
+ weak_client_, size));
+}
+
+void PipelineImpl::OnVideoOpacityChange(bool opaque) {
+ DCHECK(media_task_runner_->BelongsToCurrentThread());
+
+ main_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&Pipeline::Client::OnVideoOpacityChange,
+ weak_client_, opaque));
+}
+
void PipelineImpl::SetDuration(TimeDelta duration) {
// TODO(alokp): Add thread DCHECK after ensuring that all Demuxer
// implementations call DemuxerHost on the media thread.

Powered by Google App Engine
This is Rietveld 408576698