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

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

Issue 2448193002: ShapeDetection: support CanvasImageSource as detect() source (Closed)
Patch Set: Created 4 years, 2 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: 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 76b35adf4ae0f365105a10829a673a59d3b8aa07..8896c4d83b0150de8c0f783152e1a229b18c0b71 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
@@ -15,6 +15,7 @@ namespace blink {
class Document;
class HTMLImageElement;
+class ImageBitmap;
class LocalDOMWindow;
class LocalFrame;
@@ -26,6 +27,7 @@ class MODULES_EXPORT FaceDetector final
public:
static FaceDetector* create(ScriptState*);
ScriptPromise detect(ScriptState*, const HTMLImageElement*);
+ ScriptPromise detect(ScriptState*, ImageBitmap*);
xianglu 2016/10/25 21:07:45 const?
mcasas 2016/10/25 21:47:38 I tried that but apparently V8 binding generates t
DECLARE_TRACE();
private:

Powered by Google App Engine
This is Rietveld 408576698