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

Unified Diff: media/capture/video/video_capture_device.h

Issue 2365223002: Video Capture: Allow suspension of individual devices. (Closed)
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: media/capture/video/video_capture_device.h
diff --git a/media/capture/video/video_capture_device.h b/media/capture/video/video_capture_device.h
index cbdc8adde4c6e44dd2d764957a6873c267d02109..18cbc3be448e6699478894f3fc8fff0cb3022ac8 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -167,6 +167,14 @@ class CAPTURE_EXPORT VideoCaptureDevice {
// reasonable attempts to honor these requests.
virtual void RequestRefreshFrame() {}
+ // Optionally suspends frame delivery. The video capturer may or may not honor
chfremer 2016/09/27 00:54:59 nit: "video capturer" -> "VideoCaptureDevice" or "
miu 2016/09/27 23:42:23 Done.
+ // this request. The purpose of this is to allow minimizing resource usage
+ // while there are no frame consumers present.
chfremer 2016/09/27 00:54:59 nit: The names "Suspend" and "Resume" already some
miu 2016/09/27 23:42:23 Done.
+ virtual void MaybeSuspend() {}
+
+ // Resumes frame delivery, if it was suspended.
+ virtual void Resume() {}
+
// Deallocates the video capturer, possibly asynchronously.
//
// This call requires the device to do the following things, eventually: put
« content/renderer/media/video_capture_impl_manager.h ('K') | « media/base/video_capturer_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698