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

Unified Diff: media/capture/screen_capture_device_core.cc

Issue 1199593005: Automatic resolution throttling for screen capture pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resolution_chooser_ITEM13
Patch Set: Addressed hubbe's nit. Created 5 years, 6 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: media/capture/screen_capture_device_core.cc
diff --git a/media/capture/screen_capture_device_core.cc b/media/capture/screen_capture_device_core.cc
index 3705eadab1338eb332550c27e892d5001df1bbaf..6e2d0c4627f553396d38f5200963ef6bd1c59b1b 100644
--- a/media/capture/screen_capture_device_core.cc
+++ b/media/capture/screen_capture_device_core.cc
@@ -23,6 +23,14 @@ void DeleteCaptureMachine(
} // namespace
+VideoCaptureMachine::VideoCaptureMachine() {}
+
+VideoCaptureMachine::~VideoCaptureMachine() {}
+
+bool VideoCaptureMachine::IsAutoThrottlingEnabled() const {
+ return false;
+}
+
void ScreenCaptureDeviceCore::AllocateAndStart(
const VideoCaptureParams& params,
scoped_ptr<VideoCaptureDevice::Client> client) {
@@ -60,7 +68,8 @@ void ScreenCaptureDeviceCore::AllocateAndStart(
return;
}
- oracle_proxy_ = new ThreadSafeCaptureOracle(client.Pass(), params);
+ oracle_proxy_ = new ThreadSafeCaptureOracle(
+ client.Pass(), params, capture_machine_->IsAutoThrottlingEnabled());
capture_machine_->Start(
oracle_proxy_,

Powered by Google App Engine
This is Rietveld 408576698