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

Unified Diff: services/video_capture/public/cpp/device_to_feedback_observer_adapter.cc

Issue 2818513003: [Mojo Video Capture] Adapt video_capture service to refactored video capture stack (Closed)
Patch Set: Fix compile errors Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698