Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: services/shape_detection/barcode_detection_impl_mac.h

Issue 2755393002: Revert of RELAND: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/shape_detection/DEPS ('k') | services/shape_detection/barcode_detection_impl_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_ 5 #ifndef SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
6 #define SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_ 6 #define SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
7 7
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h" 9 #include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
10 #include "third_party/skia/include/core/SkBitmap.h"
11 10
12 @class CIDetector; 11 @class CIDetector;
13 12
14 namespace shape_detection { 13 namespace shape_detection {
15 14
16 class BarcodeDetectionImplMac 15 class BarcodeDetectionImplMac
17 : public shape_detection::mojom::BarcodeDetection { 16 : public shape_detection::mojom::BarcodeDetection {
18 public: 17 public:
19 BarcodeDetectionImplMac(); 18 BarcodeDetectionImplMac();
20 ~BarcodeDetectionImplMac() override; 19 ~BarcodeDetectionImplMac() override;
21 20
22 void Detect(const SkBitmap& bitmap, 21 void Detect(mojo::ScopedSharedBufferHandle frame_data,
22 uint32_t width,
23 uint32_t height,
23 const shape_detection::mojom::BarcodeDetection::DetectCallback& 24 const shape_detection::mojom::BarcodeDetection::DetectCallback&
24 callback) override; 25 callback) override;
25 26
26 private: 27 private:
27 base::scoped_nsobject<CIDetector> detector_; 28 base::scoped_nsobject<CIDetector> detector_;
28 29
29 DISALLOW_COPY_AND_ASSIGN(BarcodeDetectionImplMac); 30 DISALLOW_COPY_AND_ASSIGN(BarcodeDetectionImplMac);
30 }; 31 };
31 32
32 } // namespace shape_detection 33 } // namespace shape_detection
33 34
34 #endif // SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_ 35 #endif // SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
OLDNEW
« no previous file with comments | « services/shape_detection/DEPS ('k') | services/shape_detection/barcode_detection_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698