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

Unified Diff: services/shape_detection/barcode_detection_impl_mac.h

Issue 2629433003: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: ShapeDetection: use mojom::Bitmap for mojo interface. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: services/shape_detection/barcode_detection_impl_mac.h
diff --git a/services/shape_detection/barcode_detection_impl_mac.h b/services/shape_detection/barcode_detection_impl_mac.h
index a77798976a22e74619169fede3ed19985038e651..977e487221814af374f4a591080e3dfc9a3c0272 100644
--- a/services/shape_detection/barcode_detection_impl_mac.h
+++ b/services/shape_detection/barcode_detection_impl_mac.h
@@ -7,6 +7,7 @@
#include "base/mac/scoped_nsobject.h"
#include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
+#include "third_party/skia/include/core/SkBitmap.h"
@class CIDetector;
@@ -18,9 +19,7 @@ class BarcodeDetectionImplMac
BarcodeDetectionImplMac();
~BarcodeDetectionImplMac() override;
- void Detect(mojo::ScopedSharedBufferHandle frame_data,
- uint32_t width,
- uint32_t height,
+ void Detect(const SkBitmap& bitmap_data,
const shape_detection::mojom::BarcodeDetection::DetectCallback&
callback) override;

Powered by Google App Engine
This is Rietveld 408576698