Index: content/browser/renderer_host/media/video_capture_controller.cc |
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc |
index ec20aa05f04d15f662c7042b303989a8dfc64d4c..42021f8ad77ae01355c9431971508ce761600ffc 100644 |
--- a/content/browser/renderer_host/media/video_capture_controller.cc |
+++ b/content/browser/renderer_host/media/video_capture_controller.cc |
@@ -471,6 +471,24 @@ void VideoCaptureController::OnStarted() { |
} |
} |
+void VideoCaptureController::OnStartedUsingGpuDecode() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ for (const auto& client : controller_clients_) { |
+ if (client->session_closed) |
+ continue; |
+ client->event_handler->OnStartedUsingGpuDecode(client->controller_id); |
+ } |
+} |
+ |
+void VideoCaptureController::OnStoppedUsingGpuDecode() { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ for (const auto& client : controller_clients_) { |
+ if (client->session_closed) |
+ continue; |
+ client->event_handler->OnStoppedUsingGpuDecode(client->controller_id); |
+ } |
+} |
+ |
VideoCaptureController::ControllerClient* VideoCaptureController::FindClient( |
VideoCaptureControllerID id, |
VideoCaptureControllerEventHandler* handler, |