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

Unified Diff: services/media/framework/graph.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
« no previous file with comments | « services/media/framework/graph.h ('k') | services/media/framework/lpcm_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/graph.cc
diff --git a/services/media/framework/graph.cc b/services/media/framework/graph.cc
index cc47a039a02105034ce269a8ed33b5dfe16dd60c..7bd1d4c26020d0053f2743c8c4f34f35e576ad4b 100644
--- a/services/media/framework/graph.cc
+++ b/services/media/framework/graph.cc
@@ -8,9 +8,7 @@ namespace mojo {
namespace media {
Graph::Graph() {
- update_function_ = [this](Stage* stage) {
- engine_.RequestUpdate(stage);
- };
+ update_function_ = [this](Stage* stage) { engine_.RequestUpdate(stage); };
}
Graph::~Graph() {
@@ -62,27 +60,23 @@ PartRef Graph::Connect(const OutputRef& output, const InputRef& input) {
return input.part();
}
-PartRef Graph::ConnectParts(
- PartRef upstream_part,
- PartRef downstream_part) {
+PartRef Graph::ConnectParts(PartRef upstream_part, PartRef downstream_part) {
DCHECK(upstream_part.valid());
DCHECK(downstream_part.valid());
Connect(upstream_part.output(), downstream_part.input());
return downstream_part;
}
-PartRef Graph::ConnectOutputToPart(
- const OutputRef& output,
- PartRef downstream_part) {
+PartRef Graph::ConnectOutputToPart(const OutputRef& output,
+ PartRef downstream_part) {
DCHECK(output.valid());
DCHECK(downstream_part.valid());
Connect(output, downstream_part.input());
return downstream_part;
}
-PartRef Graph::ConnectPartToInput(
- PartRef upstream_part,
- const InputRef& input) {
+PartRef Graph::ConnectPartToInput(PartRef upstream_part,
+ const InputRef& input) {
DCHECK(upstream_part.valid());
DCHECK(input.valid());
Connect(upstream_part.output(), input);
@@ -128,7 +122,7 @@ void Graph::DisconnectInput(const InputRef& input) {
void Graph::RemovePartsConnectedToPart(PartRef part) {
DCHECK(part.valid());
- std::deque<PartRef> to_remove { part };
+ std::deque<PartRef> to_remove{part};
while (!to_remove.empty()) {
PartRef part = to_remove.front();
« no previous file with comments | « services/media/framework/graph.h ('k') | services/media/framework/lpcm_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698