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

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)

Created:
3 years, 11 months ago by mcasas
Modified:
3 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mac-reviews_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shape detection service: Add QR detection in Mac This CL lands support for QR/barcode detection in Mac by adding the correspondent files in services/shape_detection. Most of the work is reshuffling code that was specific to Face detection, to suit both Face and Barcode detection: - Removed shape_detection_service_dispatcher.h and merged its two methods as statics in render_process_host_impl.cc. - Moved common service/ code to detection_utils_mac.h/mm (1 helper function) ** Important note re. testing ** Chromium Mac bots seem to have troubles running CoreImage methods, probably because they are virtual machines (no GPU). This prevents testing the Barcode detection API properly, and also renders void the current Face detection test. So, the plan is: a) Remove the current Mac-Face detection test, because is not testing anything, really (there was a bug in the error-return path that is cleaned up here). b) land (imminently) new unit tests for face and barcode, running in Mac Gpu bots. This CL does a); b) will be done in a subsequent CL. BUG=665150 TEST= ./out/gn/Chromium.app/Contents/MacOS/Chromium --enable-blink-features=ShapeDetection,GeometryInterfaces https://codepen.io/miguelao/full/wgrYjZ NOTE: unittests for {face/barcode}_detection_impl_mac.mm coming imminently after this). Review-Url: https://codereview.chromium.org/2655303005 Cr-Commit-Position: refs/heads/master@{#447900} Committed: https://chromium.googlesource.com/chromium/src/+/90149a4889e454cdca844de420d9deac61b99db6

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rsesek@ comments #

Total comments: 6

Patch Set 3 : rsesek@ and rockot@s comments #

Patch Set 4 : Don't init explicitly a vector of vectors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -187 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/mac/sdk_forward_declarations.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 5 chunks +20 lines, -7 lines 0 comments Download
D content/browser/shapedetection/face_detection_service_dispatcher.h View 1 chunk +0 lines, -33 lines 0 comments Download
M content/browser/shapedetection/shapedetection_browsertest.cc View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M content/test/data/media/face_detection_test.html View 1 chunk +2 lines, -2 lines 0 comments Download
M services/shape_detection/BUILD.gn View 2 chunks +10 lines, -1 line 0 comments Download
A services/shape_detection/barcode_detection_impl.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A services/shape_detection/barcode_detection_impl.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
A + services/shape_detection/barcode_detection_impl_mac.h View 1 1 chunk +10 lines, -10 lines 0 comments Download
A services/shape_detection/barcode_detection_impl_mac.mm View 1 1 chunk +94 lines, -0 lines 0 comments Download
A services/shape_detection/detection_utils_mac.h View 1 chunk +24 lines, -0 lines 0 comments Download
A + services/shape_detection/detection_utils_mac.mm View 1 2 4 chunks +15 lines, -68 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.mm View 1 3 chunks +5 lines, -55 lines 0 comments Download
M services/shape_detection/shape_detection_service.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (48 generated)
mcasas
rockot@: PTAL at the content/ request forwarding rsesek@ PTAL at the Mac parts.
3 years, 10 months ago (2017-02-01 16:21:36 UTC) #34
Robert Sesek
https://codereview.chromium.org/2655303005/diff/470001/services/shape_detection/barcode_detection_impl.cc File services/shape_detection/barcode_detection_impl.cc (right): https://codereview.chromium.org/2655303005/diff/470001/services/shape_detection/barcode_detection_impl.cc#newcode9 services/shape_detection/barcode_detection_impl.cc:9: //static nit: space after / https://codereview.chromium.org/2655303005/diff/470001/services/shape_detection/barcode_detection_impl_mac.mm File services/shape_detection/barcode_detection_impl_mac.mm (right): ...
3 years, 10 months ago (2017-02-01 19:34:11 UTC) #35
mcasas
ptal https://codereview.chromium.org/2655303005/diff/470001/services/shape_detection/barcode_detection_impl.cc File services/shape_detection/barcode_detection_impl.cc (right): https://codereview.chromium.org/2655303005/diff/470001/services/shape_detection/barcode_detection_impl.cc#newcode9 services/shape_detection/barcode_detection_impl.cc:9: //static On 2017/02/01 19:34:11, Robert Sesek wrote: > ...
3 years, 10 months ago (2017-02-01 20:40:21 UTC) #37
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2655303005/diff/510001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2655303005/diff/510001/content/browser/renderer_host/render_process_host_impl.cc#newcode1204 content/browser/renderer_host/render_process_host_impl.cc:1204: AddUIThreadInterface( Note that in both of these cases, trying ...
3 years, 10 months ago (2017-02-01 21:01:07 UTC) #38
Robert Sesek
Mac bits lgtm https://codereview.chromium.org/2655303005/diff/510001/services/shape_detection/barcode_detection_impl.h File services/shape_detection/barcode_detection_impl.h (right): https://codereview.chromium.org/2655303005/diff/510001/services/shape_detection/barcode_detection_impl.h#newcode18 services/shape_detection/barcode_detection_impl.h:18: private: Make the constructor private too?
3 years, 10 months ago (2017-02-02 12:53:45 UTC) #39
mcasas
rockot@ PTAL avi@ RS content/ changes plz https://codereview.chromium.org/2655303005/diff/510001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2655303005/diff/510001/content/browser/renderer_host/render_process_host_impl.cc#newcode1204 content/browser/renderer_host/render_process_host_impl.cc:1204: AddUIThreadInterface( On ...
3 years, 10 months ago (2017-02-02 19:40:34 UTC) #43
Ken Rockot(use gerrit already)
lgtm
3 years, 10 months ago (2017-02-02 19:45:23 UTC) #44
mcasas
dcheng@ RS plz the additions to base/mac/sdk_forward_declaration
3 years, 10 months ago (2017-02-02 20:48:49 UTC) #46
Robert Sesek
On 2017/02/02 20:48:49, mcasas wrote: > dcheng@ RS plz the additions to base/mac/sdk_forward_declaration That shouldn't ...
3 years, 10 months ago (2017-02-02 22:18:40 UTC) #47
mcasas
On 2017/02/02 22:18:40, Robert Sesek wrote: > On 2017/02/02 20:48:49, mcasas wrote: > > dcheng@ ...
3 years, 10 months ago (2017-02-02 22:36:01 UTC) #48
mcasas
nick@ RS plz the small things in content/browser/* (ISO avi@ ooo)
3 years, 10 months ago (2017-02-02 22:37:33 UTC) #50
ncarter (slow)
rs lgtm
3 years, 10 months ago (2017-02-02 22:41:03 UTC) #51
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/2655303005/540001
3 years, 10 months ago (2017-02-02 22:48:03 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/232841)
3 years, 10 months ago (2017-02-02 23:29:56 UTC) #56
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/2655303005/560001
3 years, 10 months ago (2017-02-02 23:44:23 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/111846)
3 years, 10 months ago (2017-02-03 01:37:42 UTC) #61
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/2655303005/560001
3 years, 10 months ago (2017-02-03 01:40:52 UTC) #63
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 03:27:17 UTC) #66
Message was sent while issue was closed.
Committed patchset #4 (id:560001) as
https://chromium.googlesource.com/chromium/src/+/90149a4889e454cdca844de420d9...

Powered by Google App Engine
This is Rietveld 408576698