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 151e0a7ce8666a6d51627393af66d0329c01b90b..b8539f0d2c3475c99496eaedcae991a27e05e4a3 100644 |
--- a/services/shape_detection/face_detection_impl_mac.mm |
+++ b/services/shape_detection/face_detection_impl_mac.mm |
@@ -3,6 +3,8 @@ |
// found in the LICENSE file. |
#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" |
@@ -37,12 +39,10 @@ |
FaceDetectionImplMac::FaceDetectionImplMac( |
shape_detection::mojom::FaceDetectorOptionsPtr options) { |
- NSString* const accuracy = |
- options->fast_mode ? CIDetectorAccuracyHigh : CIDetectorAccuracyLow; |
- NSDictionary* const detector_options = @{CIDetectorAccuracy : accuracy}; |
+ NSDictionary* const opts = @{CIDetectorAccuracy : CIDetectorAccuracyHigh}; |
detector_.reset([[CIDetector detectorOfType:CIDetectorTypeFace |
context:nil |
- options:detector_options] retain]); |
+ options:opts] retain]); |
} |
FaceDetectionImplMac::~FaceDetectionImplMac() {} |