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

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: Added comments to AudioTrackController::SetRate regarding the proper way to implement it. 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
« no previous file with comments | « services/media/framework/graph.h ('k') | services/media/framework/parts/decoder.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 794985d2823bc0fea7e534dd5e2d34070237fa07..a95eb1ed8f2728f08f6cefa6e13e98d6cbdaefe6 100644
--- a/services/media/framework/graph.cc
+++ b/services/media/framework/graph.cc
@@ -199,6 +199,19 @@ 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++) {
+ FlushOutput(part.output(output_index));
+ }
+}
+
PartRef Graph::Add(Stage* stage) {
stages_.push_back(stage);
« no previous file with comments | « services/media/framework/graph.h ('k') | services/media/framework/parts/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698