| 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 content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "gpu/ipc/common/sync_token.mojom"; | |
| 8 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo
m"; | 7 import "services/video_capture/public/interfaces/video_capture_device_proxy.mojo
m"; |
| 9 import "services/video_capture/public/interfaces/video_capture_format.mojom"; | 8 import "services/video_capture/public/interfaces/video_capture_format.mojom"; |
| 10 | 9 |
| 11 struct VideoCaptureParams { | 10 struct VideoCaptureParams { |
| 12 video_capture.mojom.VideoCaptureFormat requested_format; | 11 video_capture.mojom.VideoCaptureFormat requested_format; |
| 13 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; | 12 video_capture.mojom.ResolutionChangePolicy resolution_change_policy; |
| 14 video_capture.mojom.PowerLineFrequency power_line_frequency; | 13 video_capture.mojom.PowerLineFrequency power_line_frequency; |
| 15 }; | 14 }; |
| 16 | 15 |
| 17 enum VideoCaptureState { | 16 enum VideoCaptureState { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 | 46 |
| 48 // Resume |device_id| video capture, in |session_id| and with |params|. | 47 // Resume |device_id| video capture, in |session_id| and with |params|. |
| 49 Resume(int32 device_id, int32 session_id, VideoCaptureParams params); | 48 Resume(int32 device_id, int32 session_id, VideoCaptureParams params); |
| 50 | 49 |
| 51 // Requests that the video capturer send a frame "soon" (e.g., to resolve | 50 // Requests that the video capturer send a frame "soon" (e.g., to resolve |
| 52 // picture loss or quality issues). | 51 // picture loss or quality issues). |
| 53 RequestRefreshFrame(int32 device_id); | 52 RequestRefreshFrame(int32 device_id); |
| 54 | 53 |
| 55 // Indicates that a renderer has finished using a previously shared buffer. | 54 // Indicates that a renderer has finished using a previously shared buffer. |
| 56 ReleaseBuffer(int32 device_id, int32 buffer_id, | 55 ReleaseBuffer(int32 device_id, int32 buffer_id, |
| 57 gpu.mojom.SyncToken sync_token, | |
| 58 double consumer_resource_utilization); | 56 double consumer_resource_utilization); |
| 59 | 57 |
| 60 // Get the formats supported by a device referenced by |session_id|. | 58 // Get the formats supported by a device referenced by |session_id|. |
| 61 GetDeviceSupportedFormats(int32 device_id, int32 session_id) | 59 GetDeviceSupportedFormats(int32 device_id, int32 session_id) |
| 62 => (array<video_capture.mojom.VideoCaptureFormat> formats_supported); | 60 => (array<video_capture.mojom.VideoCaptureFormat> formats_supported); |
| 63 | 61 |
| 64 // Get the format(s) in use by a device referenced by |session_id|. | 62 // Get the format(s) in use by a device referenced by |session_id|. |
| 65 GetDeviceFormatsInUse(int32 device_id, int32 session_id) | 63 GetDeviceFormatsInUse(int32 device_id, int32 session_id) |
| 66 => (array<video_capture.mojom.VideoCaptureFormat> formats_in_use); | 64 => (array<video_capture.mojom.VideoCaptureFormat> formats_in_use); |
| 67 }; | 65 }; |
| OLD | NEW |