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

Unified Diff: services/video_capture/receiver_mojo_to_media_adapter.cc

Issue 2583603002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() + OnFrameReadyInBuffer() (Closed)
Patch Set: Improve naming and fix Android background issue Created 4 years 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..4c615a64ccbab359a416722754930a9f36c330cf 100644
--- a/services/video_capture/receiver_mojo_to_media_adapter.cc
+++ b/services/video_capture/receiver_mojo_to_media_adapter.cc
@@ -4,9 +4,6 @@
#include "services/video_capture/receiver_mojo_to_media_adapter.h"
-#include "media/mojo/common/media_type_converters.h"
-#include "media/mojo/common/mojo_shared_buffer_video_frame.h"
-
namespace video_capture {
ReceiverMojoToMediaAdapter::ReceiverMojoToMediaAdapter(
@@ -15,9 +12,17 @@ ReceiverMojoToMediaAdapter::ReceiverMojoToMediaAdapter(
ReceiverMojoToMediaAdapter::~ReceiverMojoToMediaAdapter() = default;
-void ReceiverMojoToMediaAdapter::OnIncomingCapturedVideoFrame(
- media::VideoCaptureDevice::Client::Buffer buffer,
- scoped_refptr<media::VideoFrame> frame) {
+void ReceiverMojoToMediaAdapter::OnNewBufferHandle(
+ int buffer_id,
+ std::unique_ptr<media::BufferHandleProvider> handle_provider) {
+ NOTIMPLEMENTED();
+}
+
+void ReceiverMojoToMediaAdapter::OnFrameReadyInBuffer(
+ int buffer_id,
+ int frame_feedback_id,
+ std::unique_ptr<media::Ownership> buffer_usage_reservation,
+ media::mojom::VideoFrameInfoPtr frame_info) {
NOTIMPLEMENTED();
}
@@ -29,12 +34,8 @@ void ReceiverMojoToMediaAdapter::OnLog(const std::string& message) {
receiver_->OnLog(message);
}
-void ReceiverMojoToMediaAdapter::OnBufferDestroyed(int buffer_id_to_drop) {
- // Nothing to do here.
- // This call is only needed for clients who need to explicitly share buffers
- // with other processes and keep track of which buffers the buffer pool is
- // no longer going to reuse/resurrect.
- // In the world of Mojo, we do not need to share buffers explicitly.
+void ReceiverMojoToMediaAdapter::OnBufferRetired(int buffer_id) {
+ NOTIMPLEMENTED();
}
} // namespace video_capture
« 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