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

Unified Diff: content/browser/media/capture/content_video_capture_device_core.cc

Issue 1124263004: New resolution change policies for desktop and tab capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inlined operator==(). Created 5 years, 7 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: content/browser/media/capture/content_video_capture_device_core.cc
diff --git a/content/browser/media/capture/content_video_capture_device_core.cc b/content/browser/media/capture/content_video_capture_device_core.cc
index 757db4a6d38437b36d65fb26b71073a95b2b6945..8d44104c1c418f4a3f21d9648b682d4a34ce74d7 100644
--- a/content/browser/media/capture/content_video_capture_device_core.cc
+++ b/content/browser/media/capture/content_video_capture_device_core.cc
@@ -152,7 +152,7 @@ void ThreadSafeCaptureOracle::UpdateCaptureSize(const gfx::Size& source_size) {
// been set; or 2) The resolution change policy specifies dynamic frame
// sizes.
if (capture_size_.IsEmpty() || params_.resolution_change_policy ==
- media::RESOLUTION_POLICY_DYNAMIC_WITHIN_LIMIT) {
+ media::RESOLUTION_POLICY_ANY_WITHIN_LIMIT) {
capture_size_ = source_size;
// The capture size should not exceed the maximum frame size.
if (capture_size_.width() > max_frame_size().width() ||

Powered by Google App Engine
This is Rietveld 408576698