| Index: content/renderer/media/video_capture_impl.h
|
| diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
|
| index 51933a87d1a705e831b12e5ce73b062e2c4cdee2..39b3af9d1fa16487df00349bbc1a1fa021865a87 100644
|
| --- a/content/renderer/media/video_capture_impl.h
|
| +++ b/content/renderer/media/video_capture_impl.h
|
| @@ -129,7 +129,8 @@ class CONTENT_EXPORT VideoCaptureImpl
|
| // buffer.
|
| void OnClientBufferFinished(int buffer_id,
|
| const scoped_refptr<ClientBuffer>& buffer,
|
| - uint32 release_sync_point);
|
| + uint32 release_sync_point,
|
| + double consumer_resource_utilization);
|
|
|
| void StopDevice();
|
| void RestartCapture();
|
| @@ -140,6 +141,15 @@ class CONTENT_EXPORT VideoCaptureImpl
|
| // Helpers.
|
| bool RemoveClient(int client_id, ClientInfoMap* clients);
|
|
|
| + // Called (by an unknown thread) when all consumers are done with a VideoFrame
|
| + // and its ref-count has gone to zero. This helper function grabs the
|
| + // RESOURCE_UTILIZATION value from the |metadata| and then runs the given
|
| + // callback, to trampoline back to the IO thread with the values.
|
| + static void DidFinishConsumingFrame(
|
| + const media::VideoFrameMetadata* metadata,
|
| + uint32* release_sync_point_storage, // Takes ownership.
|
| + const base::Callback<void(uint32, double)>& callback_to_io_thread);
|
| +
|
| const scoped_refptr<VideoCaptureMessageFilter> message_filter_;
|
| int device_id_;
|
| const int session_id_;
|
|
|