| 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);
|
|
|
|
|