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 module video_capture.mojom; | 5 module video_capture.mojom; |
6 | 6 |
7 import "media/capture/mojo/video_capture_types.mojom"; | 7 import "media/capture/mojo/video_capture_types.mojom"; |
8 import "services/video_capture/public/interfaces/receiver.mojom"; | 8 import "services/video_capture/public/interfaces/receiver.mojom"; |
9 | 9 |
10 // Represents access to a video capture device available on the machine. | 10 // Represents access to a video capture device available on the machine. |
11 // Note: Instead of offering an explicit Stop() method, the device | 11 // Note: Instead of offering an explicit Stop() method, the device |
12 // is stopped automatically when the message pipe corresponding to either the | 12 // is stopped automatically when the message pipe corresponding to either the |
13 // Device or the given |receiver| is closed. | 13 // Device or the given |receiver| is closed. |
14 interface Device { | 14 interface Device { |
15 Start(media.mojom.VideoCaptureParams requested_settings, Receiver receiver); | 15 Start(media.mojom.VideoCaptureParams requested_settings, Receiver receiver); |
| 16 OnReceiverReportingUtilization(int32 frame_feedback_id, |
| 17 double utilization); |
16 }; | 18 }; |
OLD | NEW |