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

Unified Diff: services/video_capture/receiver_mojo_to_media_adapter.cc

Issue 2613793007: Revert of [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « services/video_capture/receiver_mojo_to_media_adapter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/receiver_mojo_to_media_adapter.cc
diff --git a/services/video_capture/receiver_mojo_to_media_adapter.cc b/services/video_capture/receiver_mojo_to_media_adapter.cc
index 3c51cac3f104396dcd9924aa2df70377683a26bb..737d632a136dca738e993d41ac907ad1836e3c68 100644
--- a/services/video_capture/receiver_mojo_to_media_adapter.cc
+++ b/services/video_capture/receiver_mojo_to_media_adapter.cc
@@ -16,9 +16,12 @@
ReceiverMojoToMediaAdapter::~ReceiverMojoToMediaAdapter() = default;
void ReceiverMojoToMediaAdapter::OnIncomingCapturedVideoFrame(
- media::VideoCaptureDevice::Client::Buffer buffer,
+ std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
scoped_refptr<media::VideoFrame> frame) {
- NOTIMPLEMENTED();
+ // O: |frame| should already be backed by a MojoSharedBufferVideoFrame
+ // assuming we have used the correct buffer factory with the pool.
+ auto video_frame_ptr = media::mojom::VideoFrame::From(std::move(frame));
+ receiver_->OnIncomingCapturedVideoFrame(std::move(video_frame_ptr));
}
void ReceiverMojoToMediaAdapter::OnError() {
« no previous file with comments | « services/video_capture/receiver_mojo_to_media_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698