Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: services/video_capture/public/interfaces/video_frame_receiver.mojom

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: Remove method AsClientBuffer() Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/video_capture/public/interfaces/video_frame_receiver.mojom
diff --git a/services/video_capture/public/interfaces/video_capture_device_client.mojom b/services/video_capture/public/interfaces/video_frame_receiver.mojom
similarity index 60%
rename from services/video_capture/public/interfaces/video_capture_device_client.mojom
rename to services/video_capture/public/interfaces/video_frame_receiver.mojom
index 810d8aa73740d6266e3a452a13e0be3b04d30a02..d4eaac97254f9c9918a6e7186efa5770a543536c 100644
--- a/services/video_capture/public/interfaces/video_capture_device_client.mojom
+++ b/services/video_capture/public/interfaces/video_frame_receiver.mojom
@@ -7,8 +7,10 @@ module video_capture.mojom;
import "media/mojo/interfaces/media_types.mojom";
// Callback interface for receiving data and messages from a started
-// VideoCaptureDevice.
-interface VideoCaptureDeviceClient {
- OnFrameAvailable(media.mojom.VideoFrame frame);
- OnError(string error);
+// VideoCaptureDeviceProxy.
+interface VideoFrameReceiver {
+ OnIncomingCapturedVideoFrame(media.mojom.VideoFrame frame);
+ OnError();
+ OnLog(string message);
+ OnBufferDestroyed(int32 buffer_id_to_drop);
};

Powered by Google App Engine
This is Rietveld 408576698