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

Unified Diff: services/video_capture/video_capture_device_proxy_impl.cc

Issue 2244773002: Video Capture Mojo (1.4c): Handle Subsequent Access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FillServicePart2
Patch Set: Created 4 years, 3 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/video_capture_device_proxy_impl.cc
diff --git a/services/video_capture/video_capture_device_proxy_impl.cc b/services/video_capture/video_capture_device_proxy_impl.cc
index 56a3f7f2726fa8d6a72d9998fc10e5542f8631dd..69b0105f5680cb1e8d36cfd2637d89a8d9cb5b60 100644
--- a/services/video_capture/video_capture_device_proxy_impl.cc
+++ b/services/video_capture/video_capture_device_proxy_impl.cc
@@ -29,6 +29,10 @@ void VideoCaptureDeviceProxyImpl::Start(
device_->AllocateAndStart(params, std::move(media_client));
}
+void VideoCaptureDeviceProxyImpl::Stop() {
+ device_->StopAndDeAllocate();
+}
+
// static
media::VideoCaptureFormat VideoCaptureDeviceProxyImpl::ConvertFromMojoToMedia(
mojom::VideoCaptureFormatPtr format) {

Powered by Google App Engine
This is Rietveld 408576698