Index: services/video_capture/public/interfaces/receiver.mojom |
diff --git a/services/video_capture/public/interfaces/receiver.mojom b/services/video_capture/public/interfaces/receiver.mojom |
index 287c0579bc581bab9df5af3c2dc096780918fd28..6ec99df97cfb5d4d8371244c7728a20113e9044f 100644 |
--- a/services/video_capture/public/interfaces/receiver.mojom |
+++ b/services/video_capture/public/interfaces/receiver.mojom |
@@ -4,14 +4,22 @@ |
module video_capture.mojom; |
+import "media/capture/mojo/video_capture_types.mojom"; |
import "media/mojo/interfaces/media_types.mojom"; |
+// Empty interface for encapsulating scoped access permission to a Buffer. |
+interface ScopedAccessPermission {}; |
+ |
// Callback interface for receiving data and messages from a started |
// video_capture.mojom.Device. |
interface Receiver { |
- OnIncomingCapturedVideoFrame(media.mojom.VideoFrame frame); |
+ OnNewBufferHandle(int32 buffer_id, handle<shared_buffer> buffer_handle); |
+ OnFrameReadyInBuffer(int32 buffer_id, int32 frame_feedback_id, |
+ ScopedAccessPermission access_permission, |
+ media.mojom.VideoFrameInfo frame_info); |
+ OnBufferRetired(int32 buffer_id); |
OnError(); |
OnLog(string message); |
OnStarted(); |
- OnBufferDestroyed(int32 buffer_id_to_drop); |
+ OnStartedUsingGpuDecode(); |
}; |