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

Unified Diff: services/media/framework_mojo/mojo_producer.cc

Issue 2077413003: Motown: Various fixes related to video playback support (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Comments and name changes for clarity. 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
« no previous file with comments | « services/media/framework_ffmpeg/ffmpeg_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework_mojo/mojo_producer.cc
diff --git a/services/media/framework_mojo/mojo_producer.cc b/services/media/framework_mojo/mojo_producer.cc
index f0c9c27dadfa7bb48e163d03f6002470cbcb24ef..50eb26ee24cc4788c5bf107e0c21e611593f9022 100644
--- a/services/media/framework_mojo/mojo_producer.cc
+++ b/services/media/framework_mojo/mojo_producer.cc
@@ -29,14 +29,14 @@ void MojoProducer::PrimeConnection(const PrimeConnectionCallback& callback) {
if (consumer_.is_bound()) {
base::AutoLock lock(lock_);
- max_pushes_outstanding_ = 3; // TODO(dalesat): Made up!
+ max_pushes_outstanding_ = 4; // TODO(dalesat): Made up!
demand = current_pushes_outstanding_ < max_pushes_outstanding_
? Demand::kPositive
: Demand::kNegative;
} else {
demand = Demand::kNeutral;
if (!mojo_allocator_.initialized()) {
- mojo_allocator_.InitNew(2048 * 1024); // TODO(dalesat): Made up!
+ mojo_allocator_.InitNew(4096 * 1024); // TODO(dalesat): Made up!
}
}
@@ -116,7 +116,7 @@ void MojoProducer::Connect(InterfaceHandle<MediaConsumer> consumer,
consumer_ = MediaConsumerPtr::Create(std::move(consumer));
if (!mojo_allocator_.initialized()) {
- mojo_allocator_.InitNew(2048 * 1024); // TODO(dalesat): Made up!
+ mojo_allocator_.InitNew(4096 * 1024); // TODO(dalesat): Made up!
}
consumer_->SetBuffer(mojo_allocator_.GetDuplicateHandle(),
« no previous file with comments | « services/media/framework_ffmpeg/ffmpeg_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698