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

Issue 2629433003: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)

Created:
3 years, 11 months ago by junwei
Modified:
3 years, 10 months ago
CC:
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: use mojom::Bitmap for mojo interface. This CL uses mojo::Bitmap for mojo ShapeDetection interfaces definition, so that the Detect API is completely flexible and friendly. BUG=665488 TEST(Layout)= third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html third_party/WebKit/LayoutTests/shapedetection/detection-HTMLVideoElement.html third_party/WebKit/LayoutTests/shapedetection/detection-ImageBitmap.html third_party/WebKit/LayoutTests/shapedetection/detection-ImageData.html Review-Url: https://codereview.chromium.org/2629433003 Cr-Commit-Position: refs/heads/master@{#446142} Committed: https://chromium.googlesource.com/chromium/src/+/33adf4c85dd553eb607bcf9c02c5fa60c8738a68

Patch Set 1 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 4

Patch Set 2 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 4

Patch Set 3 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 8

Patch Set 4 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 2

Patch Set 5 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 2

Patch Set 6 : ShapeDetection: use mojom::Bitmap for mojo interface. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -190 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java View 1 2 3 4 4 chunks +16 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionImpl.java View 1 2 3 4 4 chunks +16 lines, -6 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java View 1 2 3 4 2 chunks +22 lines, -10 lines 0 comments Download
M services/shape_detection/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M services/shape_detection/barcode_detection_impl_mac.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M services/shape_detection/barcode_detection_impl_mac.mm View 1 2 3 4 5 1 chunk +3 lines, -5 lines 2 comments Download
M services/shape_detection/detection_utils_mac.h View 1 2 3 4 5 1 chunk +3 lines, -4 lines 1 comment Download
M services/shape_detection/detection_utils_mac.mm View 1 2 3 4 5 1 chunk +14 lines, -39 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.mm View 1 2 3 4 5 1 chunk +3 lines, -5 lines 1 comment Download
M services/shape_detection/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/shape_detection/public/interfaces/barcodedetection.mojom View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M services/shape_detection/public/interfaces/facedetection.mojom View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M services/shape_detection/public/interfaces/textdetection.mojom View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-textdetection.js View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp View 1 2 3 4 5 2 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 2 3 5 chunks +30 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/TextDetector.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 168 (126 generated)
junwei
I am trying to use mojo::Bitmap for ShapeDetection interfaces definition, but the layout tests are ...
3 years, 11 months ago (2017-01-16 05:35:59 UTC) #26
yzshen1
On 2017/01/16 05:35:59, junwei.fu wrote: > I am trying to use mojo::Bitmap for ShapeDetection interfaces ...
3 years, 11 months ago (2017-01-17 17:59:31 UTC) #27
xianglu
https://codereview.chromium.org/2629433003/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js File third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js (right): https://codereview.chromium.org/2629433003/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js#newcode48 third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js:48: this.buffer_data_ = new Uint32Array(image.pixel_data.buffer); I think just image.pixel_data is ...
3 years, 11 months ago (2017-01-17 21:53:20 UTC) #28
mcasas
On 2017/01/17 21:53:20, xianglu wrote: > https://codereview.chromium.org/2629433003/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > File > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > (right): > > ...
3 years, 11 months ago (2017-01-18 00:25:56 UTC) #29
junwei
On 2017/01/18 00:25:56, mcasas wrote: > On 2017/01/17 21:53:20, xianglu wrote: > > > https://codereview.chromium.org/2629433003/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js ...
3 years, 11 months ago (2017-01-18 06:03:30 UTC) #41
junwei
On 2017/01/17 21:53:20, xianglu wrote: > https://codereview.chromium.org/2629433003/diff/80001/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > File > third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js > (right): > > ...
3 years, 11 months ago (2017-01-18 08:33:25 UTC) #44
junwei
On 2017/01/17 17:59:31, yzshen1 wrote: > On 2017/01/16 05:35:59, junwei.fu wrote: > > I am ...
3 years, 11 months ago (2017-01-18 08:35:42 UTC) #45
junwei
On 2017/01/17 17:59:31, yzshen1 wrote: > On 2017/01/16 05:35:59, junwei.fu wrote: > > I am ...
3 years, 11 months ago (2017-01-18 08:35:45 UTC) #46
Tom Sepez
lgtm
3 years, 11 months ago (2017-01-18 17:01:06 UTC) #48
xianglu
Please also copy the subject to the first line of CL description. This is because ...
3 years, 11 months ago (2017-01-18 21:08:38 UTC) #49
junwei
On 2017/01/18 21:08:38, xianglu wrote: > Please also copy the subject to the first line ...
3 years, 11 months ago (2017-01-19 02:22:08 UTC) #51
xianglu
On 2017/01/19 02:22:08, junwei.fu wrote: > On 2017/01/18 21:08:38, xianglu wrote: > > Please also ...
3 years, 11 months ago (2017-01-19 03:00:32 UTC) #52
junwei
On 2017/01/19 03:00:32, xianglu wrote: > On 2017/01/19 02:22:08, junwei.fu wrote: > > On 2017/01/18 ...
3 years, 11 months ago (2017-01-19 04:06:12 UTC) #53
xianglu
LGTM
3 years, 11 months ago (2017-01-19 04:38:46 UTC) #55
mcasas
https://codereview.chromium.org/2629433003/diff/140001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java File content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java (right): https://codereview.chromium.org/2629433003/diff/140001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java#newcode62 content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java:62: // TODO(xianglu): Consider worker pool as appropriate threads. Please ...
3 years, 11 months ago (2017-01-19 18:09:48 UTC) #60
junwei
On 2017/01/19 18:09:48, mcasas wrote: > https://codereview.chromium.org/2629433003/diff/140001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java > File > content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java > (right): > > ...
3 years, 11 months ago (2017-01-22 08:42:01 UTC) #63
mcasas
https://codereview.chromium.org/2629433003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java File chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java (right): https://codereview.chromium.org/2629433003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java#newcode86 chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java:86: || numPixels > (Long.MAX_VALUE / 4) || !validConfig(bitmapData.colorType)) { ...
3 years, 11 months ago (2017-01-24 00:52:06 UTC) #74
junwei
On 2017/01/24 00:52:06, mcasas wrote: > https://codereview.chromium.org/2629433003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > File > chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > (right): > > ...
3 years, 11 months ago (2017-01-24 07:33:18 UTC) #79
mcasas
https://codereview.chromium.org/2629433003/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java File chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java (right): https://codereview.chromium.org/2629433003/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java#newcode80 chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java:80: Config bitmapConfig = validConfig(bitmapData.colorType); The problem is that, even ...
3 years, 11 months ago (2017-01-24 20:48:32 UTC) #85
junwei
On 2017/01/24 20:48:32, mcasas wrote: > https://codereview.chromium.org/2629433003/diff/240001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > File > chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > (right): > > ...
3 years, 11 months ago (2017-01-25 02:05:52 UTC) #88
mcasas
https://codereview.chromium.org/2629433003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java File chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java (right): https://codereview.chromium.org/2629433003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java:67: callback.call(new BarcodeDetectionResult[0]); Still need to return here https://codereview.chromium.org/2629433003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionImpl.java File ...
3 years, 11 months ago (2017-01-25 02:25:36 UTC) #89
junwei
On 2017/01/25 02:25:36, mcasas wrote: > https://codereview.chromium.org/2629433003/diff/260001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > File > chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java > (right): > > ...
3 years, 11 months ago (2017-01-25 02:44:42 UTC) #93
mcasas
lgtm
3 years, 11 months ago (2017-01-25 02:50:58 UTC) #94
haraken
WebKit LGTM
3 years, 11 months ago (2017-01-25 03:04:34 UTC) #95
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/2629433003/280001
3 years, 11 months ago (2017-01-25 05:30:23 UTC) #100
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349663)
3 years, 11 months ago (2017-01-25 05:37:12 UTC) #102
junwei
https://codereview.chromium.org/2629433003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java File chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java (right): https://codereview.chromium.org/2629433003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java#newcode86 chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java:86: || numPixels > (Long.MAX_VALUE / 4) || !validConfig(bitmapData.colorType)) { ...
3 years, 11 months ago (2017-01-25 06:14:50 UTC) #104
junwei
PTAL for missing LGTM from an OWNER for these files: chrome/android/BUILD.gn chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionImpl.java content/public/android/BUILD.gn content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java ...
3 years, 11 months ago (2017-01-25 06:28:08 UTC) #105
David Trainor- moved to gerrit
chrome/android lgtm. Deferring to mcasas@ for some of the details on bitmap behavior/expectations here. Would ...
3 years, 11 months ago (2017-01-25 06:28:48 UTC) #106
junwei
3 years, 11 months ago (2017-01-25 06:34:22 UTC) #108
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/2629433003/280001
3 years, 11 months ago (2017-01-25 06:35:35 UTC) #110
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349707)
3 years, 11 months ago (2017-01-25 06:42:07 UTC) #112
junwei
On 2017/01/25 06:42:07, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-25 06:44:47 UTC) #113
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2629433003/diff/280001/services/shape_detection/public/interfaces/facedetection.mojom File services/shape_detection/public/interfaces/facedetection.mojom (right): https://codereview.chromium.org/2629433003/diff/280001/services/shape_detection/public/interfaces/facedetection.mojom#newcode26 services/shape_detection/public/interfaces/facedetection.mojom:26: Detect(skia.mojom.Bitmap bitmap_data) nit: formatting - should fit in ...
3 years, 11 months ago (2017-01-25 22:06:27 UTC) #116
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/2629433003/280001
3 years, 11 months ago (2017-01-25 22:17:02 UTC) #118
commit-bot: I haz the power
Committed patchset #5 (id:280001) as https://chromium.googlesource.com/chromium/src/+/33adf4c85dd553eb607bcf9c02c5fa60c8738a68
3 years, 11 months ago (2017-01-25 22:26:12 UTC) #121
maniscalco
A revert of this CL (patchset #5 id:280001) has been created in https://codereview.chromium.org/2655533005/ by maniscalco@chromium.org. ...
3 years, 11 months ago (2017-01-25 22:38:35 UTC) #122
findit-for-me
FYI: Findit identified this CL at revision 446142 as the culprit for failures in the ...
3 years, 11 months ago (2017-01-25 22:58:22 UTC) #123
junwei
@xianglu @mcasas PTAL for these files: services/shape_detection/DEPS services/shape_detection/barcode_detection_impl_mac.h services/shape_detection/barcode_detection_impl_mac.mm services/shape_detection/detection_utils_mac.h services/shape_detection/detection_utils_mac.mm services/shape_detection/face_detection_impl_mac.h services/shape_detection/face_detection_impl_mac.mm
3 years, 10 months ago (2017-02-07 05:23:12 UTC) #165
mcasas
This CL has been reverted, so what you need to do is to upload a ...
3 years, 10 months ago (2017-02-07 19:04:44 UTC) #166
junwei
On 2017/02/07 19:04:44, mcasas wrote: > This CL has been reverted, so what you need ...
3 years, 10 months ago (2017-02-08 01:42:55 UTC) #167
junwei
3 years, 10 months ago (2017-02-08 01:42:58 UTC) #168
On 2017/02/07 19:04:44, mcasas wrote:
> This CL has been reverted, so what you need to do is to
> upload a new CL, with the title RELAND:..., upload the landed
> CL verbatim as PatchSet 0, then the extra modifications as 
> subsequent patches, e.g. like in [1].  Make sure the description
> quotes the original landed-reverted description, and what
> have you done, if applicable, to prevent another revert.
> (Also address my comments)
Thanks, the new CL is https://codereview.chromium.org/2681913003

> [1] https://codereview.chromium.org/2623353004/
> 
>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> File services/shape_detection/barcode_detection_impl_mac.mm (right):
> 
>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> services/shape_detection/barcode_detection_impl_mac.mm:53: void
> BarcodeDetectionImplMac::Detect(const SkBitmap& bitmap_data,
> s/bitmap_data/bitmap/
Thanks, done.

>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> services/shape_detection/barcode_detection_impl_mac.mm:66: int height =
> bitmap_data.height();
> Const.
Thanks, done.

>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> File services/shape_detection/detection_utils_mac.h (right):
> 
>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> services/shape_detection/detection_utils_mac.h:18:
> base::scoped_nsobject<CIImage> CreateCIImageFromData(
> s/CreateCIImageFromData/CreateCIImageFromSkBitmap/
Thanks, done.

>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> File services/shape_detection/face_detection_impl_mac.mm (right):
> 
>
https://codereview.chromium.org/2629433003/diff/440001/services/shape_detecti...
> services/shape_detection/face_detection_impl_mac.mm:62: int height =
> bitmap_data.height();
> Const.
Thanks, done.

Powered by Google App Engine
This is Rietveld 408576698