Chromium Code Reviews| Index: content/browser/renderer_host/media/video_capture_controller.h |
| diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h |
| index 634fb169316dadc1adf9aab789e803b493819c11..6e04d5a526184156429764e5a3d4ea7d96905f4d 100644 |
| --- a/content/browser/renderer_host/media/video_capture_controller.h |
| +++ b/content/browser/renderer_host/media/video_capture_controller.h |
| @@ -102,6 +102,7 @@ class CONTENT_EXPORT VideoCaptureController : public media::VideoFrameReceiver { |
| void OnError() override; |
| void OnLog(const std::string& message) override; |
| void OnStarted() override; |
| + void OnStartedUsingGpuDecode() override; |
| private: |
| struct ControllerClient; |
| @@ -172,6 +173,14 @@ class CONTENT_EXPORT VideoCaptureController : public media::VideoFrameReceiver { |
| void ReleaseBufferContext( |
| const std::vector<BufferContext>::iterator& buffer_state_iter); |
| + using EventHandlerAction = |
| + base::Callback<void(VideoCaptureControllerEventHandler* client, |
| + VideoCaptureControllerID id)>; |
| + void PerformForClientsWithOpenSession(EventHandlerAction action); |
| + |
| + template <typename Action> |
| + void PerformForClientsWithOpenSessionT(); |
|
mcasas
2017/03/08 22:04:51
If we use Bind() to call PerformForClientsWithOpen
chfremer
2017/03/08 22:21:22
Oops. Thanks for catching this.
Done.
|
| + |
| std::unique_ptr<media::VideoFrameConsumerFeedbackObserver> |
| consumer_feedback_observer_; |