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

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

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#1 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..dc27ed6b0b587cf1fb1bb6082c0a24ba0c8d3faa 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -214,6 +214,12 @@ 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 will be called either synchronously or asynchronously by any
+ // thread. This is OK because it will be posted to IO thread and handled
+ // there by state machines.
+ virtual void OnStarted() = 0;
chfremer 2017/02/14 19:21:23 A couple of recommendations here: 1.) I recommend
braveyao 2017/02/15 21:47:16 Done. Basically, there is hundreds of millisecond
chfremer 2017/02/16 01:00:50 I looked at the device implementations and had som
braveyao 2017/02/17 20:37:21 Acknowledged. From this point of view, it is the t
};
~VideoCaptureDevice() override;
« no previous file with comments | « media/capture/video/mac/video_capture_device_mac.mm ('k') | media/capture/video/video_capture_device_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698