| 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 |
| 5 #ifndef SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_ |
| 6 #define SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_ |
| 7 |
| 8 #import <QuartzCore/QuartzCore.h> |
| 9 |
| 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "third_party/WebKit/public/platform/modules/shapedetection/facedetectio
n.mojom.h" |
| 12 |
| 13 namespace shape_detection { |
| 14 |
| 15 class FaceDetectionImplMac : public blink::mojom::FaceDetection { |
| 16 public: |
| 17 FaceDetectionImplMac(blink::mojom::FaceDetectorOptionsPtr options); |
| 18 ~FaceDetectionImplMac() override; |
| 19 |
| 20 void Detect( |
| 21 mojo::ScopedSharedBufferHandle frame_data, |
| 22 uint32_t width, |
| 23 uint32_t height, |
| 24 const blink::mojom::FaceDetection::DetectCallback& callback) override; |
| 25 |
| 26 private: |
| 27 base::scoped_nsobject<CIContext> context_; |
| 28 base::scoped_nsobject<CIDetector> detector_; |
| 29 DISALLOW_COPY_AND_ASSIGN(FaceDetectionImplMac); |
| 30 }; |
| 31 |
| 32 } // namespace shape_detection |
| 33 |
| 34 #endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_ |
| OLD | NEW |