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

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

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)
Patch Set: 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_capture_device_proxy.mojom
diff --git a/services/video_capture/public/interfaces/video_capture_device_proxy.mojom b/services/video_capture/public/interfaces/video_capture_device_proxy.mojom
index 0a8950222bf7e3165fdb54528a0e6951125e1e4d..2c35027fb596cdfefd6216f83f64be2bae66ccc4 100644
--- a/services/video_capture/public/interfaces/video_capture_device_proxy.mojom
+++ b/services/video_capture/public/interfaces/video_capture_device_proxy.mojom
@@ -5,14 +5,16 @@
module video_capture.mojom;
import "media/capture/mojo/video_capture_types.mojom";
+import "services/video_capture/public/interfaces/video_capture_settings.mojom";
import "services/video_capture/public/interfaces/video_frame_receiver.mojom";
// Represents access to a video capture device available on the machine.
// Note: Instead of offering an explicit Stop() method, the device
-// is stopped automatically when the corresponding message pipe is closed.
+// is stopped automatically when the message pipe corresponding to either the
+// VideoCaptureDeviceProxy or the given VideoFrameReceiver is closed.
+// The frames deliverd to |receiver| are guaranteed to use I420 encoding and
+// are backed by Mojo shared buffers.
interface VideoCaptureDeviceProxy {
- Start(media.mojom.VideoCaptureFormat requested_format,
- media.mojom.ResolutionChangePolicy resolution_change_policy,
- media.mojom.PowerLineFrequency power_line_frequency,
+ Start(VideoCaptureSettings requested_settings,
VideoFrameReceiver receiver);
};

Powered by Google App Engine
This is Rietveld 408576698