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

Unified Diff: services/video_capture/test/mock_receiver.cc

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Created 3 years, 8 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: services/video_capture/test/mock_receiver.cc
diff --git a/services/video_capture/test/mock_receiver.cc b/services/video_capture/test/mock_receiver.cc
index 5665911f5549b0ce347370ad718246a8e9b36c1b..34d11199b2b4f42e469258145ac81f66f9a3b9e8 100644
--- a/services/video_capture/test/mock_receiver.cc
+++ b/services/video_capture/test/mock_receiver.cc
@@ -11,9 +11,19 @@ MockReceiver::MockReceiver(mojom::ReceiverRequest request)
MockReceiver::~MockReceiver() = default;
-void MockReceiver::OnIncomingCapturedVideoFrame(
- media::mojom::VideoFramePtr frame) {
- OnIncomingCapturedVideoFramePtr(&frame);
+void MockReceiver::OnNewBufferHandle(
+ int32_t buffer_id,
+ mojo::ScopedSharedBufferHandle buffer_handle) {
+ DoOnNewBufferHandle(buffer_id, &buffer_handle);
+}
+
+void MockReceiver::OnFrameReadyInBuffer(
+ int32_t buffer_id,
+ int32_t frame_feedback_id,
+ mojom::ScopedAccessPermissionPtr access_permission,
+ media::mojom::VideoFrameInfoPtr frame_info) {
+ DoOnFrameReadyInBuffer(buffer_id, frame_feedback_id, &access_permission,
+ &frame_info);
}
} // namespace video_capture

Powered by Google App Engine
This is Rietveld 408576698