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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h

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: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
index e16c8cc061bb07db6e0885824cb4992911a6e97d..c370d6bb1bd72057773da500a3633e5455b21770 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
@@ -22,13 +22,13 @@ class MODULES_EXPORT FaceDetector final : public ShapeDetector,
DEFINE_WRAPPERTYPEINFO();
public:
- static FaceDetector* create(ScriptState*);
+ static FaceDetector* create(ScriptState*, const FaceDetectorOptions&);
ScriptPromise detect(ScriptState*, const CanvasImageSourceUnion&);
DECLARE_VIRTUAL_TRACE();
private:
- explicit FaceDetector(LocalFrame&);
+ explicit FaceDetector(LocalFrame&, const FaceDetectorOptions&);
~FaceDetector() override = default;
};

Powered by Google App Engine
This is Rietveld 408576698