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

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

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#3 Created 3 years, 10 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 a716db8665967b41a6af20cf42600324457ff978..8e15cb6a59a443a8be7d7463fb1520b69966edea 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -214,6 +214,13 @@ class CAPTURE_EXPORT VideoCaptureDevice
// Returns the current buffer pool utilization, in the range 0.0 (no buffers
// are in use by producers or consumers) to 1.0 (all buffers are in use).
virtual double GetBufferPoolUtilization() const = 0;
+
+ // VideoCaptureDevice reports it's successfully started.
+ // This method may be called either synchronously from an invocation of
+ // VideoCaptureDevice::AllocateAndStart() or asynchronously from any thread
+ // after AllocateAndStart() has returned. It is guaranteed to get called
+ // before any video frames are delivered.
+ virtual void OnStarted() = 0;
};
~VideoCaptureDevice() override;

Powered by Google App Engine
This is Rietveld 408576698