| Index: services/shape_detection/face_detection_impl_mac.mm
|
| diff --git a/services/shape_detection/face_detection_impl_mac.mm b/services/shape_detection/face_detection_impl_mac.mm
|
| index b8539f0d2c3475c99496eaedcae991a27e05e4a3..151e0a7ce8666a6d51627393af66d0329c01b90b 100644
|
| --- a/services/shape_detection/face_detection_impl_mac.mm
|
| +++ b/services/shape_detection/face_detection_impl_mac.mm
|
| @@ -4,8 +4,6 @@
|
|
|
| #include "services/shape_detection/face_detection_impl_mac.h"
|
|
|
| -#import <QuartzCore/QuartzCore.h>
|
| -
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "media/capture/video/scoped_result_callback.h"
|
| #include "mojo/public/cpp/bindings/strong_binding.h"
|
| @@ -39,10 +37,12 @@ void FaceDetectionProviderImpl::CreateFaceDetection(
|
|
|
| FaceDetectionImplMac::FaceDetectionImplMac(
|
| shape_detection::mojom::FaceDetectorOptionsPtr options) {
|
| - NSDictionary* const opts = @{CIDetectorAccuracy : CIDetectorAccuracyHigh};
|
| + NSString* const accuracy =
|
| + options->fast_mode ? CIDetectorAccuracyHigh : CIDetectorAccuracyLow;
|
| + NSDictionary* const detector_options = @{CIDetectorAccuracy : accuracy};
|
| detector_.reset([[CIDetector detectorOfType:CIDetectorTypeFace
|
| context:nil
|
| - options:opts] retain]);
|
| + options:detector_options] retain]);
|
| }
|
|
|
| FaceDetectionImplMac::~FaceDetectionImplMac() {}
|
|
|