| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_MEDIA_MODELS_DEMAND_H_ | 5 #ifndef MOJO_MEDIA_MODELS_DEMAND_H_ |
| 6 #define MOJO_MEDIA_MODELS_DEMAND_H_ | 6 #define MOJO_MEDIA_MODELS_DEMAND_H_ |
| 7 | 7 |
| 8 namespace mojo { | 8 namespace mojo { |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 // Expresses packet demand for signalling upstream in a graph. | 11 // Expresses packet demand for signalling upstream in a graph. |
| 12 enum class Demand { | 12 enum class Demand { |
| 13 // Ordered such that (kNegative < kNeutral < kPositive). | 13 // Ordered such that (kNegative < kNeutral < kPositive). |
| 14 | 14 |
| 15 // No packet can currently be accepted. | 15 // No packet can currently be accepted. |
| 16 kNegative = -1, | 16 kNegative = -1, |
| 17 | 17 |
| 18 // A packet can be accepted but is not required to meet timing constraints. | 18 // A packet can be accepted but is not required to meet timing constraints. |
| 19 kNeutral = 0, | 19 kNeutral = 0, |
| 20 | 20 |
| 21 // A packet is required to meet timing constraints. | 21 // A packet is required to meet timing constraints. |
| 22 kPositive = 1 | 22 kPositive = 1 |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 } // namespace media | 25 } // namespace media |
| 26 } // namespace mojo | 26 } // namespace mojo |
| 27 | 27 |
| 28 #endif // MOJO_MEDIA_MODELS_DEMAND_H_ | 28 #endif // MOJO_MEDIA_MODELS_DEMAND_H_ |
| OLD | NEW |