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

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

Issue 2875243002: RELAND: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: RELAND2: ShapeDetection: use mojom::Bitmap for mojo interface. Created 3 years, 6 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
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_TEXT_DETECTION_IMPL_MAC_H_ 5 #ifndef SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_
6 #define SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_ 6 #define SERVICES_SHAPE_DETECTION_TEXT_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/textdetection.mojom.h" 9 #include "services/shape_detection/public/interfaces/textdetection.mojom.h"
10 10
11 @class CIDetector; 11 @class CIDetector;
12 12
13 namespace shape_detection { 13 namespace shape_detection {
14 14
15 class TextDetectionImplMac : public mojom::TextDetection { 15 class TextDetectionImplMac : public mojom::TextDetection {
16 public: 16 public:
17 TextDetectionImplMac(); 17 TextDetectionImplMac();
18 ~TextDetectionImplMac() override; 18 ~TextDetectionImplMac() override;
19 19
20 void Detect(mojo::ScopedSharedBufferHandle frame_data, 20 void Detect(const SkBitmap& bitmap,
21 uint32_t width,
22 uint32_t height,
23 const mojom::TextDetection::DetectCallback& callback) override; 21 const mojom::TextDetection::DetectCallback& callback) override;
24 22
25 private: 23 private:
26 base::scoped_nsobject<CIDetector> detector_; 24 base::scoped_nsobject<CIDetector> detector_;
27 25
28 DISALLOW_COPY_AND_ASSIGN(TextDetectionImplMac); 26 DISALLOW_COPY_AND_ASSIGN(TextDetectionImplMac);
29 }; 27 };
30 28
31 } // namespace shape_detection 29 } // namespace shape_detection
32 30
33 #endif // SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_ 31 #endif // SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_
OLDNEW
« no previous file with comments | « services/shape_detection/public/interfaces/textdetection.mojom ('k') | services/shape_detection/text_detection_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698