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

Unified Diff: services/media/framework/graph.cc

Issue 1692443002: Motown: Framework parts for mojo transport (producer/consumer/mediapipe) and control (audiotrack). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Sync and fix: InterfaceHandle<X> vs XPtr, changes to MediaPipe Created 4 years, 10 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/graph.cc
diff --git a/services/media/framework/graph.cc b/services/media/framework/graph.cc
index 794985d2823bc0fea7e534dd5e2d34070237fa07..d5d0539eb31b59997bd7552bfc4ea4cdd9388571 100644
--- a/services/media/framework/graph.cc
+++ b/services/media/framework/graph.cc
@@ -199,6 +199,22 @@ void Graph::PrimeSinks() {
}
}
+void Graph::FlushOutput(const OutputRef& output) {
+ DCHECK(output);
+ engine_.FlushOutput(output);
+}
+
+void Graph::FlushAllOutputs(PartRef part) {
+ DCHECK(part.valid());
+ size_t output_count = part.output_count();
+ for (size_t output_index = 0; output_index < output_count; output_index++) {
+ const OutputRef& output = part.output(output_index);
+ if (output.connected()) {
johngro 2016/02/23 00:49:42 if the output.connected() check is important, perh
dalesat 2016/02/23 20:34:34 Done.
+ FlushOutput(output);
+ }
+ }
+}
+
PartRef Graph::Add(Stage* stage) {
stages_.push_back(stage);

Powered by Google App Engine
This is Rietveld 408576698