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

Unified Diff: services/media/framework/stages/multistream_source_stage.cc

Issue 1822333002: Motown: wholesale clang-format (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat Created 4 years, 9 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: services/media/framework/stages/multistream_source_stage.cc
diff --git a/services/media/framework/stages/multistream_source_stage.cc b/services/media/framework/stages/multistream_source_stage.cc
index 3d64ba05a128a5c9953f720f6a19bbce39978c53..65f687fb452d3176b35101106995fa687180ee64 100644
--- a/services/media/framework/stages/multistream_source_stage.cc
+++ b/services/media/framework/stages/multistream_source_stage.cc
@@ -8,9 +8,8 @@ namespace mojo {
namespace media {
MultistreamSourceStage::MultistreamSourceStage(
- std::shared_ptr<MultistreamSource> source) :
- source_(source),
- ended_streams_(0) {
+ std::shared_ptr<MultistreamSource> source)
+ : source_(source), ended_streams_(0) {
DCHECK(source);
outputs_.resize(source->stream_count());
}
@@ -40,10 +39,9 @@ PayloadAllocator* MultistreamSourceStage::PrepareInput(size_t index) {
return nullptr;
}
-void MultistreamSourceStage::PrepareOutput(
- size_t index,
- PayloadAllocator* allocator,
- const UpstreamCallback& callback) {
+void MultistreamSourceStage::PrepareOutput(size_t index,
+ PayloadAllocator* allocator,
+ const UpstreamCallback& callback) {
DCHECK(index < outputs_.size());
if (allocator != nullptr) {
@@ -54,9 +52,8 @@ void MultistreamSourceStage::PrepareOutput(
}
}
-void MultistreamSourceStage::UnprepareOutput(
- size_t index,
- const UpstreamCallback& callback) {
+void MultistreamSourceStage::UnprepareOutput(size_t index,
+ const UpstreamCallback& callback) {
DCHECK(index < outputs_.size());
outputs_[index].SetCopyAllocator(nullptr);
}
@@ -104,9 +101,8 @@ void MultistreamSourceStage::Update(Engine* engine) {
}
}
-void MultistreamSourceStage::FlushInput(
- size_t index,
- const DownstreamCallback& callback) {
+void MultistreamSourceStage::FlushInput(size_t index,
+ const DownstreamCallback& callback) {
CHECK(false) << "FlushInput called on source";
}
« no previous file with comments | « services/media/framework/stages/multistream_source_stage.h ('k') | services/media/framework/stages/output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698