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

Unified Diff: services/shape_detection/public/interfaces/barcodedetection.mojom

Issue 2629433003: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: ShapeDetection: use mojom::Bitmap for mojo interface. Created 3 years, 11 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/public/interfaces/barcodedetection.mojom
diff --git a/services/shape_detection/public/interfaces/barcodedetection.mojom b/services/shape_detection/public/interfaces/barcodedetection.mojom
index 27f95ecdaa72cb46d2d95717fe6556e9fb76db2b..548bc1dd62acfaf3f581959a6a81271e5b6b8618 100644
--- a/services/shape_detection/public/interfaces/barcodedetection.mojom
+++ b/services/shape_detection/public/interfaces/barcodedetection.mojom
@@ -6,6 +6,7 @@
module shape_detection.mojom;
+import "skia/public/interfaces/bitmap.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
struct BarcodeDetectionResult {
@@ -19,7 +20,6 @@ struct BarcodeDetectionResult {
interface BarcodeDetection {
// |frame_data| contains tightly packed image pixels in ARGB32 format,
xianglu 2017/01/18 21:08:37 Change this comment accordingly. Same for other .m
// row-major order.
- // TODO(mcasas): Consider using mojo::Bitmap here, https://crbug.com/665488.
- Detect(handle<shared_buffer> frame_data, uint32 width, uint32 height)
+ Detect(skia.mojom.Bitmap image)
=> (array<BarcodeDetectionResult> results);
};

Powered by Google App Engine
This is Rietveld 408576698