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

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: Move all end_t assignments out of for-loop init. Created 5 years, 5 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
« no previous file with comments | « media/capture/screen_capture_device_core.h ('k') | media/capture/thread_safe_capture_oracle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c414f59fcba45c05c01a6d7d0d6033b88c7c8995..431fe402ecc046b180824cd29d63822a4a25be7a 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) {
@@ -45,7 +53,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_,
« no previous file with comments | « media/capture/screen_capture_device_core.h ('k') | media/capture/thread_safe_capture_oracle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698