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

Unified Diff: media/capture/content/screen_capture_device_core.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 side-by-side diff with in-line comments
Download patch
Index: media/capture/content/screen_capture_device_core.cc
diff --git a/media/capture/content/screen_capture_device_core.cc b/media/capture/content/screen_capture_device_core.cc
index f65ea591741117b68c4a1cc5b9487d896e5b083e..88513f08003eec8bdaa4370178466f33a4728e9a 100644
--- a/media/capture/content/screen_capture_device_core.cc
+++ b/media/capture/content/screen_capture_device_core.cc
@@ -113,6 +113,14 @@ void ScreenCaptureDeviceCore::StopAndDeAllocate() {
capture_machine_->Stop(base::Bind(&base::DoNothing));
}
+void ScreenCaptureDeviceCore::OnConsumerReportingUtilization(
+ int frame_feedback_id,
+ double utilization) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(oracle_proxy_);
+ oracle_proxy_->OnConsumerReportingUtilization(frame_feedback_id, utilization);
+}
+
void ScreenCaptureDeviceCore::CaptureStarted(bool success) {
DCHECK(thread_checker_.CalledOnValidThread());
if (!success)
« no previous file with comments | « media/capture/content/screen_capture_device_core.h ('k') | media/capture/content/thread_safe_capture_oracle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698