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

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)

Created:
4 years, 1 month ago by xianglu
Modified:
4 years, 1 month ago
CC:
Reilly Grant (use Gerrit), Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces This CL adds FaceDetectorOptions to FaceDetector constructor, and changed mojo interface accordingly. It also adds two Layoutests to test correct propagation of FaceDetectorOptions. Naming style is fixed in shapedetection.mojom. BUG=659139, 646083 TEST= third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html Committed: https://crrev.com/ad251159eb951b5433a8dca6c1c4d2cce407b091 Cr-Commit-Position: refs/heads/master@{#433940}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Change naming in mojom #

Total comments: 1

Patch Set 3 : 80 cols #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -18 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html View 1 1 chunk +14 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detectshape-HTMLImageElement.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js View 1 2 chunks +12 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html View 1 1 chunk +41 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 1 1 chunk +10 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl View 1 chunk +1 line, -2 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/FaceDetectorOptions.idl View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom View 1 2 2 chunks +8 lines, -2 lines 1 comment Download

Messages

Total messages: 55 (43 generated)
xianglu
ptal.
4 years, 1 month ago (2016-11-21 19:01:29 UTC) #19
mcasas
lgtm % comments https://codereview.chromium.org/2502763005/diff/120001/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html File third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html (right): https://codereview.chromium.org/2502763005/diff/120001/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html#newcode18 third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html:18: // This test verifies that FaceDetector ...
4 years, 1 month ago (2016-11-21 23:19:26 UTC) #30
haraken
Implementation-wise modules/ LGTM (although Elliott might have thoughts on the API)
4 years, 1 month ago (2016-11-22 00:55:48 UTC) #33
xianglu
nick@ RS ptal on java file. tsepez@ RS ptal on mojom file. https://codereview.chromium.org/2502763005/diff/120001/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html File third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html ...
4 years, 1 month ago (2016-11-22 00:59:14 UTC) #35
Tom Sepez
RS LGTM https://codereview.chromium.org/2502763005/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom File third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom (right): https://codereview.chromium.org/2502763005/diff/140001/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom#newcode34 third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom:34: DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height, FaceDetectorOptions ...
4 years, 1 month ago (2016-11-22 01:02:00 UTC) #36
xianglu
avi@ RS ptal at one java file.
4 years, 1 month ago (2016-11-22 19:09:32 UTC) #42
Avi (use Gerrit)
lgtm java stamp
4 years, 1 month ago (2016-11-22 19:13:06 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2502763005/160001
4 years, 1 month ago (2016-11-22 19:13:53 UTC) #47
commit-bot: I haz the power
Committed patchset #3 (id:160001)
4 years, 1 month ago (2016-11-22 19:23:11 UTC) #50
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ad251159eb951b5433a8dca6c1c4d2cce407b091 Cr-Commit-Position: refs/heads/master@{#433940}
4 years, 1 month ago (2016-11-22 19:24:31 UTC) #52
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2502763005/diff/160001/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html File third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html (right): https://codereview.chromium.org/2502763005/diff/160001/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html#newcode23 third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html:23: }) nit: the return is unnecessary, .then(detectorWithDefault => detectorWithDefault.detect(img)) ...
4 years, 1 month ago (2016-11-22 20:33:34 UTC) #54
ncarter (slow)
4 years, 1 month ago (2016-11-22 22:38:19 UTC) #55
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698