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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: 80 cols Created 4 years, 1 month 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: content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java b/content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java
index 6451c856de4d5dd3e78c68e2e2533e01b3b29979..63f357c5a31bf7854f6ea1618bea39e01fe2c2a3 100644
--- a/content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java
@@ -12,6 +12,7 @@ import android.media.FaceDetector.Face;
import org.chromium.base.Log;
import org.chromium.blink.mojom.BarcodeDetectionResult;
import org.chromium.blink.mojom.FaceDetectionResult;
+import org.chromium.blink.mojom.FaceDetectorOptions;
import org.chromium.blink.mojom.ShapeDetection;
import org.chromium.gfx.mojom.RectF;
import org.chromium.mojo.system.MojoException;
@@ -35,8 +36,8 @@ public class ShapeDetectionImpl implements ShapeDetection {
public ShapeDetectionImpl() {}
@Override
- public void detectFaces(
- SharedBufferHandle frameData, int width, int height, DetectFacesResponse callback) {
+ public void detectFaces(SharedBufferHandle frameData, int width, int height,
+ FaceDetectorOptions options, DetectFacesResponse callback) {
if (!frameData.isValid()) {
Log.d(TAG, "Invalid sharedBufferHandle.");
return;

Powered by Google App Engine
This is Rietveld 408576698