Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom |
| diff --git a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom |
| index 9879c48149f117f8b22f777498033dc08883cbe0..e860690de45baa246b57ccddb642965b9b26c05c 100644 |
| --- a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom |
| +++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom |
| @@ -22,11 +22,16 @@ struct BarcodeDetectionResult { |
| gfx.mojom.RectF bounding_box; |
| }; |
| +struct FaceDetectorOptions { |
| + uint32 maxDetectedFaces; |
| + bool fastMode; |
|
mcasas
2016/11/21 23:19:26
s/maxDetectedFaces/max_detected_faces/
s/fastMode/
xianglu
2016/11/22 00:59:13
Done.
|
| +}; |
| + |
| interface ShapeDetection { |
| // |frame_data| contains tightly packed image pixels in ARGB32 format, |
| // row-major order. |
| // TODO(mcasas): Consider using mojo::Bitmap here, https://crbug.com/665488. |
| - DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height) |
| + DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height, FaceDetectorOptions options) |
| => (FaceDetectionResult result); |
| DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height) |