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

Unified Diff: content/renderer/pepper/pepper_video_capture_host.cc

Issue 83633008: Reland: Reorganize media::VideoCapture* types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/renderer/pepper/pepper_video_capture_host.cc
diff --git a/content/renderer/pepper/pepper_video_capture_host.cc b/content/renderer/pepper/pepper_video_capture_host.cc
index 86a7da4165ea7e70f730e1694896aacba89e6279..732842402d6ccdd2ddfc46904601eba33cd49941 100644
--- a/content/renderer/pepper/pepper_video_capture_host.cc
+++ b/content/renderer/pepper/pepper_video_capture_host.cc
@@ -365,11 +365,11 @@ void PepperVideoCaptureHost::SetRequestedInfo(
// Clamp the buffer count to between 1 and |kMaxBuffers|.
buffer_count_hint_ = std::min(std::max(buffer_count, 1U), kMaxBuffers);
- video_capture_params_.requested_format =
- media::VideoCaptureFormat(device_info.width,
- device_info.height,
- device_info.frames_per_second,
- media::ConstantResolutionVideoCaptureDevice);
+ video_capture_params_.requested_format = media::VideoCaptureFormat(
+ gfx::Size(device_info.width, device_info.height),
+ device_info.frames_per_second,
+ media::PIXEL_FORMAT_I420);
+ video_capture_params_.allow_resolution_change = false;
}
void PepperVideoCaptureHost::DetachPlatformVideoCapture() {

Powered by Google App Engine
This is Rietveld 408576698