| Index: media/capture/video/mac/video_capture_device_mac.mm
|
| diff --git a/media/capture/video/mac/video_capture_device_mac.mm b/media/capture/video/mac/video_capture_device_mac.mm
|
| index 27eb401eb708eabfc6fcf1e4a0e81aeb443ce0b3..38e1f1d0a198ccc3d4f33d85b2f98acf07394948 100644
|
| --- a/media/capture/video/mac/video_capture_device_mac.mm
|
| +++ b/media/capture/video/mac/video_capture_device_mac.mm
|
| @@ -413,6 +413,21 @@ void VideoCaptureDeviceMac::GetPhotoCapabilities(
|
| callback.Run(std::move(photo_capabilities));
|
| }
|
|
|
| +void VideoCaptureDeviceMac::SetPhotoOptions(mojom::PhotoSettingsPtr settings,
|
| + SetPhotoOptionsCallback callback) {
|
| + DCHECK(task_runner_->BelongsToCurrentThread());
|
| + // Drop |callback| and return if there are any unsupported |settings|.
|
| + // TODO(mcasas): centralise checks elsewhere, https://crbug.com/724285.
|
| + if ((settings->has_width &&
|
| + settings->width != capture_format_.frame_size.width()) ||
|
| + (settings->has_height &&
|
| + settings->height != capture_format_.frame_size.height()) ||
|
| + settings->has_fill_light_mode || settings->has_red_eye_reduction) {
|
| + return;
|
| + }
|
| + callback.Run(true);
|
| +}
|
| +
|
| bool VideoCaptureDeviceMac::Init(VideoCaptureApi capture_api_type) {
|
| DCHECK(task_runner_->BelongsToCurrentThread());
|
| DCHECK_EQ(state_, kNotInitialized);
|
|
|