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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 2735083002: [Mojo Video Capture] Add test coverage for accelerated jpeg decoding (Closed)
Patch Set: Created 3 years, 9 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: 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,

Powered by Google App Engine
This is Rietveld 408576698