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

Side by Side Diff: services/video_capture/public/cpp/receiver_media_to_mojo_adapter.cc

Issue 2848973002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 1) (Closed)
Patch Set: Created 3 years, 7 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/public/cpp/receiver_media_to_mojo_adapter.h" 5 #include "services/video_capture/public/cpp/receiver_media_to_mojo_adapter.h"
6 6
7 #include "media/capture/video/shared_memory_buffer_tracker.h" 7 #include "media/capture/video/shared_memory_buffer_tracker.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h" 8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "mojo/public/cpp/system/platform_handle.h" 9 #include "mojo/public/cpp/system/platform_handle.h"
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 void ReceiverMediaToMojoAdapter::OnError() { 104 void ReceiverMediaToMojoAdapter::OnError() {
105 receiver_->OnError(); 105 receiver_->OnError();
106 } 106 }
107 107
108 void ReceiverMediaToMojoAdapter::OnLog(const std::string& message) { 108 void ReceiverMediaToMojoAdapter::OnLog(const std::string& message) {
109 receiver_->OnLog(message); 109 receiver_->OnLog(message);
110 } 110 }
111 111
112 void ReceiverMediaToMojoAdapter::OnStarted() {
113 receiver_->OnStarted();
114 }
115
116 void ReceiverMediaToMojoAdapter::OnStartedUsingGpuDecode() {
117 receiver_->OnStartedUsingGpuDecode();
118 }
119
112 } // namespace video_capture 120 } // namespace video_capture
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698