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

Unified Diff: services/media/framework/stages/output.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/output.cc
diff --git a/services/media/framework/stages/output.cc b/services/media/framework/stages/output.cc
index 1180cf811d6aa9309c287b1b27cdbb55d7c72f4c..d3198af9587212fa7498c708ec6258eae3dfaed1 100644
--- a/services/media/framework/stages/output.cc
+++ b/services/media/framework/stages/output.cc
@@ -9,9 +9,7 @@
namespace mojo {
namespace media {
-Output::Output() :
- demand_(Demand::kNegative),
- copy_allocator_(nullptr) {}
+Output::Output() : demand_(Demand::kNegative), copy_allocator_(nullptr) {}
Output::~Output() {}
@@ -51,7 +49,7 @@ void Output::SupplyPacket(PacketPtr packet, Engine* engine) const {
if (copy_allocator_ != nullptr) {
// Need to copy the packet due to an allocation conflict.
size_t size = packet->size();
- void *buffer;
+ void* buffer;
if (size == 0) {
buffer = nullptr;
@@ -64,12 +62,8 @@ void Output::SupplyPacket(PacketPtr packet, Engine* engine) const {
memcpy(buffer, packet->payload(), size);
}
- packet = Packet::Create(
- packet->pts(),
- packet->end_of_stream(),
- size,
- buffer,
- copy_allocator_);
+ packet = Packet::Create(packet->pts(), packet->end_of_stream(), size,
+ buffer, copy_allocator_);
}
if (actual_mate().SupplyPacketFromOutput(std::move(packet))) {
« no previous file with comments | « services/media/framework/stages/multistream_source_stage.cc ('k') | services/media/framework/stages/stage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698