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

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

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: 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
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" 7 #include "media/mojo/common/media_type_converters.h"
8 #include "media/mojo/common/mojo_shared_buffer_video_frame.h" 8 #include "media/mojo/common/mojo_shared_buffer_video_frame.h"
9 9
10 namespace video_capture { 10 namespace video_capture {
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 void ReceiverMojoToMediaAdapter::OnError() { 24 void ReceiverMojoToMediaAdapter::OnError() {
25 receiver_->OnError(); 25 receiver_->OnError();
26 } 26 }
27 27
28 void ReceiverMojoToMediaAdapter::OnLog(const std::string& message) { 28 void ReceiverMojoToMediaAdapter::OnLog(const std::string& message) {
29 receiver_->OnLog(message); 29 receiver_->OnLog(message);
30 } 30 }
31 31
32 void ReceiverMojoToMediaAdapter::OnStarted() {
33 receiver_->OnStarted();
34 }
35
32 void ReceiverMojoToMediaAdapter::OnBufferDestroyed(int buffer_id_to_drop) { 36 void ReceiverMojoToMediaAdapter::OnBufferDestroyed(int buffer_id_to_drop) {
33 // Nothing to do here. 37 // Nothing to do here.
34 // This call is only needed for clients who need to explicitly share buffers 38 // This call is only needed for clients who need to explicitly share buffers
35 // with other processes and keep track of which buffers the buffer pool is 39 // with other processes and keep track of which buffers the buffer pool is
36 // no longer going to reuse/resurrect. 40 // no longer going to reuse/resurrect.
37 // In the world of Mojo, we do not need to share buffers explicitly. 41 // In the world of Mojo, we do not need to share buffers explicitly.
38 } 42 }
39 43
40 } // namespace video_capture 44 } // namespace video_capture
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698