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

Side by Side Diff: services/video_capture/receiver_mojo_to_media_adapter.cc

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/video_capture/receiver_mojo_to_media_adapter.h" 5 #include "services/video_capture/receiver_mojo_to_media_adapter.h"
6 6
7 #include "media/mojo/common/media_type_converters.h"
8 #include "media/mojo/common/mojo_shared_buffer_video_frame.h"
9
10 namespace video_capture { 7 namespace video_capture {
11 8
12 ReceiverMojoToMediaAdapter::ReceiverMojoToMediaAdapter( 9 ReceiverMojoToMediaAdapter::ReceiverMojoToMediaAdapter(
13 mojom::ReceiverPtr receiver) 10 mojom::ReceiverPtr receiver)
14 : receiver_(std::move(receiver)) {} 11 : receiver_(std::move(receiver)) {}
15 12
16 ReceiverMojoToMediaAdapter::~ReceiverMojoToMediaAdapter() = default; 13 ReceiverMojoToMediaAdapter::~ReceiverMojoToMediaAdapter() = default;
17 14
18 void ReceiverMojoToMediaAdapter::OnIncomingCapturedVideoFrame( 15 void ReceiverMojoToMediaAdapter::OnNewBufferHandle(
19 media::VideoCaptureDevice::Client::Buffer buffer, 16 int buffer_id,
20 scoped_refptr<media::VideoFrame> frame) { 17 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer::HandleProvider>
18 handle_provider) {
21 NOTIMPLEMENTED(); 19 NOTIMPLEMENTED();
22 } 20 }
23 21
22 void ReceiverMojoToMediaAdapter::OnFrameReadyInBuffer(
23 int buffer_id,
24 int frame_feedback_id,
25 std::unique_ptr<
26 media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission>
27 buffer_usage_reservation,
28 media::mojom::VideoFrameInfoPtr frame_info) {
29 NOTIMPLEMENTED();
30 }
31
24 void ReceiverMojoToMediaAdapter::OnError() { 32 void ReceiverMojoToMediaAdapter::OnError() {
25 receiver_->OnError(); 33 receiver_->OnError();
26 } 34 }
27 35
28 void ReceiverMojoToMediaAdapter::OnLog(const std::string& message) { 36 void ReceiverMojoToMediaAdapter::OnLog(const std::string& message) {
29 receiver_->OnLog(message); 37 receiver_->OnLog(message);
30 } 38 }
31 39
32 void ReceiverMojoToMediaAdapter::OnBufferRetired(int buffer_id) { 40 void ReceiverMojoToMediaAdapter::OnBufferRetired(int buffer_id) {
33 NOTIMPLEMENTED(); 41 NOTIMPLEMENTED();
34 } 42 }
35 43
36 } // namespace video_capture 44 } // namespace video_capture
OLDNEW
« 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