| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #ifndef FaceDetectorImplMac_h |
| 5 #define FaceDetectorImplMac_h |
| 6 |
| 7 #import <QuartzCore/QuartzCore.h> |
| 8 |
| 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "modules/shapedetection/FaceDetectorImpl.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class FaceDetectorImplMac : public FaceDetectorImpl { |
| 15 public: |
| 16 FaceDetectorImplMac(); |
| 17 |
| 18 HeapVector<Member<DOMRect>> detectFace(void* frame_addr, |
| 19 int width, |
| 20 int height) override; |
| 21 |
| 22 private: |
| 23 base::scoped_nsobject<CIDetector> detector_; |
| 24 base::scoped_nsobject<CIContext> context_; |
| 25 }; |
| 26 |
| 27 } // namespace blink |
| 28 |
| 29 #endif // FaceDetectorImplMac_h |
| OLD | NEW |