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

Side by Side Diff: content/browser/media/capture/screen_capture_device_android.cc

Issue 2518143004: [Mojo Video Capture] Replace RESOURCE_UTILIZATION with interface ReceiverLoadObserver (Closed)
Patch Set: Fix for android-only code Created 4 years 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 "content/browser/media/capture/screen_capture_device_android.h" 5 #include "content/browser/media/capture/screen_capture_device_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "media/capture/content/android/screen_capture_machine_android.h" 9 #include "media/capture/content/android/screen_capture_machine_android.h"
10 10
(...skipping 13 matching lines...) Expand all
24 core_.AllocateAndStart(params, std::move(client)); 24 core_.AllocateAndStart(params, std::move(client));
25 } 25 }
26 26
27 void ScreenCaptureDeviceAndroid::StopAndDeAllocate() { 27 void ScreenCaptureDeviceAndroid::StopAndDeAllocate() {
28 core_.StopAndDeAllocate(); 28 core_.StopAndDeAllocate();
29 } 29 }
30 30
31 void ScreenCaptureDeviceAndroid::RequestRefreshFrame() { 31 void ScreenCaptureDeviceAndroid::RequestRefreshFrame() {
32 core_.RequestRefreshFrame(); 32 core_.RequestRefreshFrame();
33 } 33 }
34
35 void ScreenCaptureDeviceAndroid::OnUtilizationReport(int frame_feedback_id,
36 double utilization) {
37 core_.OnConsumerReportingUtilization(frame_feedback_id, utilization);
38 }
39
34 } // namespace content 40 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698