Chromium Code Reviews| 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; |