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

Unified Diff: services/media/framework/stages/active_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/active_source_stage.cc
diff --git a/services/media/framework/stages/active_source_stage.cc b/services/media/framework/stages/active_source_stage.cc
index 190b42cbf95e952857e3d81c3466f8844e1eb337..1ae91b8bdaf6ac53fe1a831bee8e1a12e8b6d3a8 100644
--- a/services/media/framework/stages/active_source_stage.cc
+++ b/services/media/framework/stages/active_source_stage.cc
@@ -7,9 +7,8 @@
namespace mojo {
namespace media {
-ActiveSourceStage::ActiveSourceStage(std::shared_ptr<ActiveSource> source) :
- source_(source),
- prepared_(false) {
+ActiveSourceStage::ActiveSourceStage(std::shared_ptr<ActiveSource> source)
+ : source_(source), prepared_(false) {
DCHECK(source_);
supply_function_ = [this](PacketPtr packet) {
@@ -48,19 +47,18 @@ PayloadAllocator* ActiveSourceStage::PrepareInput(size_t index) {
return nullptr;
}
-void ActiveSourceStage::PrepareOutput(
- size_t index,
- PayloadAllocator* allocator,
- const UpstreamCallback& callback) {
+void ActiveSourceStage::PrepareOutput(size_t index,
+ PayloadAllocator* allocator,
+ const UpstreamCallback& callback) {
DCHECK_EQ(index, 0u);
DCHECK(source_);
if (source_->can_accept_allocator()) {
// Give the source the provided allocator or the default if non was
// provided.
- source_->set_allocator(
- allocator == nullptr ? PayloadAllocator::GetDefault() : allocator);
- } else if (allocator){
+ source_->set_allocator(allocator == nullptr ? PayloadAllocator::GetDefault()
+ : allocator);
+ } else if (allocator) {
// The source can't use the provided allocator, so the output must copy
// packets.
output_.SetCopyAllocator(allocator);
@@ -69,9 +67,8 @@ void ActiveSourceStage::PrepareOutput(
prepared_ = true;
}
-void ActiveSourceStage::UnprepareOutput(
- size_t index,
- const UpstreamCallback& callback) {
+void ActiveSourceStage::UnprepareOutput(size_t index,
+ const UpstreamCallback& callback) {
DCHECK_EQ(index, 0u);
DCHECK(source_);
@@ -92,9 +89,8 @@ void ActiveSourceStage::Update(Engine* engine) {
}
}
-void ActiveSourceStage::FlushInput(
- size_t index,
- const DownstreamCallback& callback) {
+void ActiveSourceStage::FlushInput(size_t index,
+ const DownstreamCallback& callback) {
CHECK(false) << "FlushInput called on source";
}
« no previous file with comments | « services/media/framework/stages/active_source_stage.h ('k') | services/media/framework/stages/multistream_source_stage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698