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

Issue 2859413002: Shape Detection: add idl and mojom for face landmarks and wire for Mac (Closed)

Created:
3 years, 7 months ago by mcasas
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), darin-cc_chromium.org, haraken, jam, mac-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Shape Detection: add idl and mojom for face landmarks and wire for Mac Spec issue [1] and associated commit [2] added landmarks to the detected faces, in particular eyes and mouth. This CL: - adds the appropriate idls and mojo definitions to support those; - adapts facedetection mojom Detect() to return an array<structs> ISO a struct{ array<> }, causing a few changes throughout, including on Android impl (which doesn't support landmark detection); - wires detection of said landmarks to Mac Face Detection impl and updates the associated unittests. [1] https://github.com/WICG/shape-detection-api/issues/7 [2] https://github.com/WICG/shape-detection-api/commit/dd90bf57313ea3d76b04c1b1c33d44fd5df2d67e BUG=718693 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2859413002 Cr-Commit-Position: refs/heads/master@{#469820} Committed: https://chromium.googlesource.com/chromium/src/+/04f35409eaca0779dbe9b8435f20901cf510440b

Patch Set 1 : Updated global-interface-listing.html #

Patch Set 2 : service-worker's global-interface-listing-expected.txt updated #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -39 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java View 2 chunks +12 lines, -12 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.mm View 3 chunks +32 lines, -7 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac_unittest.mm View 2 chunks +9 lines, -4 lines 0 comments Download
M services/shape_detection/public/interfaces/facedetection.mojom View 2 chunks +12 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 1 chunk +17 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +1 line, -0 lines 0 comments 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/DetectedFace.h View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp View 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl View 1 chunk +2 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 2 chunks +24 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/modules/shapedetection/Landmark.idl View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
mcasas
scheib@ PTAL
3 years, 7 months ago (2017-05-05 15:18:54 UTC) #11
scheib
lgtm
3 years, 7 months ago (2017-05-05 18:24:50 UTC) #13
mcasas
esprehn@ RS plz additions to modules_idl_files.gni tsepez@: RS plz catch-up to Spec in facedetection.mojom avi@ ...
3 years, 7 months ago (2017-05-05 18:36:03 UTC) #15
Avi (use Gerrit)
lgtm stamp
3 years, 7 months ago (2017-05-05 19:06:54 UTC) #16
esprehn
lgtm, dglazkov@ FYI
3 years, 7 months ago (2017-05-05 19:23:10 UTC) #18
Tom Sepez
mojom LGTM
3 years, 7 months ago (2017-05-05 20:27:35 UTC) #19
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/2859413002/110001
3 years, 7 months ago (2017-05-05 20:30:49 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:110001) as https://chromium.googlesource.com/chromium/src/+/04f35409eaca0779dbe9b8435f20901cf510440b
3 years, 7 months ago (2017-05-06 00:07:00 UTC) #25
haraken
modules/ LGTM, but would you add a test case to check that DetectedFace::landmarks is really ...
3 years, 7 months ago (2017-05-06 14:43:08 UTC) #27
Yuki
haraken@ is correct. https://codereview.chromium.org/2859413002/diff/110001/third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl File third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl (right): https://codereview.chromium.org/2859413002/diff/110001/third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl#newcode14 third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl:14: [SameObject] readonly attribute FrozenArray<Landmark> landmarks; Please ...
3 years, 7 months ago (2017-05-08 09:34:12 UTC) #28
mcasas
3 years, 7 months ago (2017-05-09 17:27:47 UTC) #29
Message was sent while issue was closed.
On 2017/05/08 09:34:12, Yuki(ooo_til_may8) wrote:
> haraken@ is correct.
> 
>
https://codereview.chromium.org/2859413002/diff/110001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl
(right):
> 
>
https://codereview.chromium.org/2859413002/diff/110001/third_party/WebKit/Sou...
> third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl:14:
> [SameObject] readonly attribute FrozenArray<Landmark> landmarks;
> Please add [SaveSameObject].
>   [SameObject, SaveSameObject] readonly attribute ...;

Thanks folks! Follow up in 
https://codereview.chromium.org/2873453004

Powered by Google App Engine
This is Rietveld 408576698