Index: services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc |
diff --git a/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc b/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ad842a7b9576e5e814fe9e53772cadad259c216b |
--- /dev/null |
+++ b/services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc |
@@ -0,0 +1,20 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "services/video_capture/public/cpp/device_to_feedback_observer_adapter.h" |
+ |
+namespace video_capture { |
+ |
+DeviceToFeedbackObserverAdapter::DeviceToFeedbackObserverAdapter( |
+ mojom::DevicePtr device) |
+ : device_(std::move(device)) {} |
+ |
+DeviceToFeedbackObserverAdapter::~DeviceToFeedbackObserverAdapter() = default; |
+ |
+void DeviceToFeedbackObserverAdapter::OnUtilizationReport(int frame_feedback_id, |
+ double utilization) { |
+ device_->OnReceiverReportingUtilization(frame_feedback_id, utilization); |
+} |
+ |
+} // namespace video_capture |