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

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

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

Description

RELAND2: ShapeDetection: use mojom::Bitmap for mojo interface. Original CL got reverted due to test cases are concurrent in same script context, it will cause random crash/time out. CL [1] has resolved the random issue, so rebase the commit align with the latest code. Reland implementation of detecting on mac platform, layout tests files, interface definition in mojom file and implementation in /Source/modules/shapedetion. Implementation on Android platform is new code include all of java files. [1] https://chromium-review.googlesource.com/475077 Original CL 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} CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel TBR=rockot@chromium.org, dtrainor@chromium.org, haraken@chromium.org since the gist of the CL hasn't changed. Review-Url: https://codereview.chromium.org/2681913003 Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#450582} Review-Url: https://codereview.chromium.org/2753413002 Cr-Original-Original-Commit-Position: refs/heads/master@{#458010} Review-Url: https://codereview.chromium.org/2765723002 Cr-Original-Commit-Position: refs/heads/master@{#458657} Review-Url: https://codereview.chromium.org/2875243002 Cr-Commit-Position: refs/heads/master@{#476598} Committed: https://chromium.googlesource.com/chromium/src/+/31eb1a542aea4050d9b17fd7255d366499dedede

Patch Set 1 #

Patch Set 2 : Rebasing as all Java files were moved to //services #

Total comments: 2

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -448 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M services/shape_detection/BUILD.gn View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M services/shape_detection/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/BarcodeDetectionImpl.java View 1 2 3 4 3 chunks +2 lines, -4 lines 0 comments Download
A + services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java View 1 2 3 1 chunk +23 lines, -16 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/FaceDetectionImpl.java View 1 2 3 3 chunks +7 lines, -31 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/FaceDetectionImplGmsCore.java View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
D services/shape_detection/android/java/src/org/chromium/shape_detection/SharedBufferUtils.java View 1 2 1 chunk +0 lines, -52 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java View 1 2 3 4 3 chunks +2 lines, -4 lines 0 comments Download
A + services/shape_detection/android/junit/src/org/chromium/shape_detection/BitmapUtilsTest.java View 1 2 3 3 chunks +23 lines, -22 lines 0 comments Download
D services/shape_detection/android/junit/src/org/chromium/shape_detection/SharedBufferUtilsTest.java View 1 2 3 1 chunk +0 lines, -80 lines 0 comments Download
M services/shape_detection/barcode_detection_impl_mac.h View 2 chunks +2 lines, -3 lines 0 comments Download
M services/shape_detection/barcode_detection_impl_mac.mm View 1 1 chunk +3 lines, -5 lines 0 comments Download
M services/shape_detection/barcode_detection_impl_mac_unittest.mm View 1 2 3 3 chunks +5 lines, -19 lines 0 comments Download
M services/shape_detection/detection_utils_mac.h View 1 chunk +3 lines, -4 lines 0 comments Download
M services/shape_detection/detection_utils_mac.mm View 1 chunk +12 lines, -42 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.h View 2 chunks +2 lines, -3 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac.mm View 1 1 chunk +3 lines, -5 lines 0 comments Download
M services/shape_detection/face_detection_impl_mac_unittest.mm View 1 2 3 1 chunk +2 lines, -14 lines 0 comments Download
M services/shape_detection/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/shape_detection/public/interfaces/barcodedetection.mojom View 2 chunks +3 lines, -4 lines 0 comments Download
M services/shape_detection/public/interfaces/facedetection.mojom View 1 2 chunks +3 lines, -4 lines 0 comments Download
M services/shape_detection/public/interfaces/textdetection.mojom View 2 chunks +3 lines, -3 lines 0 comments Download
M services/shape_detection/text_detection_impl_mac.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/shape_detection/text_detection_impl_mac.mm View 1 1 chunk +3 lines, -5 lines 0 comments Download
M services/shape_detection/text_detection_impl_mac_unittest.mm View 1 2 3 2 chunks +5 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-textdetection.js View 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 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp View 1 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 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 1 2 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 5 chunks +33 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/TextDetector.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp View 1 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 99 (74 generated)
junwei
mcasas@ PTAL.
3 years, 7 months ago (2017-05-12 07:13:00 UTC) #3
bsalomon
lgtm
3 years, 7 months ago (2017-05-12 11:57:24 UTC) #4
mcasas
On 2017/05/12 11:57:24, bsalomon wrote: > lgtm Hmm this is not a 100% reland because ...
3 years, 7 months ago (2017-05-12 16:22:57 UTC) #5
Tom Sepez
lgtm
3 years, 7 months ago (2017-05-12 16:23:26 UTC) #6
junwei
On 2017/05/12 16:22:57, mcasas wrote: > On 2017/05/12 11:57:24, bsalomon wrote: > > lgtm > ...
3 years, 7 months ago (2017-05-15 08:24:36 UTC) #7
mcasas
Would you mind verifying that this patch works on Android with: https://beaufortfrancois.github.io/sandbox/media-recorder/mustache.html for at least, ...
3 years, 7 months ago (2017-05-15 22:40:23 UTC) #8
mcasas
https://codereview.chromium.org/2875243002/diff/20001/services/shape_detection/android/java/src/org/chromium/shape_detection/SharedBufferUtils.java File services/shape_detection/android/java/src/org/chromium/shape_detection/SharedBufferUtils.java (right): https://codereview.chromium.org/2875243002/diff/20001/services/shape_detection/android/java/src/org/chromium/shape_detection/SharedBufferUtils.java#newcode18 services/shape_detection/android/java/src/org/chromium/shape_detection/SharedBufferUtils.java:18: public class SharedBufferUtils { Also this file/class should not ...
3 years, 7 months ago (2017-05-16 18:12:53 UTC) #9
junwei
On 2017/05/15 22:40:23, mcasas wrote: > Would you mind verifying that this patch works > ...
3 years, 7 months ago (2017-05-17 01:09:36 UTC) #10
David Trainor- moved to gerrit
lgtm
3 years, 7 months ago (2017-05-17 17:34:40 UTC) #15
mcasas
On 2017/05/17 01:09:36, junwei wrote: > On 2017/05/15 22:40:23, mcasas wrote: > > Would you ...
3 years, 7 months ago (2017-05-17 22:32:57 UTC) #16
junwei
On 2017/05/17 22:32:57, mcasas wrote: > On 2017/05/17 01:09:36, junwei wrote: > > On 2017/05/15 ...
3 years, 7 months ago (2017-05-19 11:38:28 UTC) #24
mcasas
Almost there! https://codereview.chromium.org/2875243002/diff/100001/services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java File services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java (right): https://codereview.chromium.org/2875243002/diff/100001/services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java#newcode46 services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java:46: public static Frame convertToFrame(org.chromium.skia.mojom.Bitmap bitmapData) { This ...
3 years, 7 months ago (2017-05-19 17:20:22 UTC) #25
junwei
On 2017/05/19 17:20:22, mcasas wrote: > Almost there! > > https://codereview.chromium.org/2875243002/diff/100001/services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java > File > services/shape_detection/android/java/src/org/chromium/shape_detection/BitmapUtils.java ...
3 years, 7 months ago (2017-05-22 11:44:05 UTC) #48
junwei
> > You can compile and run these tests locally with: > > > > ...
3 years, 7 months ago (2017-05-22 12:28:43 UTC) #51
mcasas
On 2017/05/22 12:28:43, junwei wrote: > > > You can compile and run these tests ...
3 years, 7 months ago (2017-05-22 17:57:21 UTC) #57
junwei
On 2017/05/22 17:57:21, mcasas wrote: > On 2017/05/22 12:28:43, junwei wrote: > > > > ...
3 years, 7 months ago (2017-05-23 12:36:47 UTC) #58
junwei
On 2017/05/23 12:36:47, junwei wrote: > On 2017/05/22 17:57:21, mcasas wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-24 10:59:05 UTC) #64
mcasas
On 2017/05/24 10:59:05, junwei wrote: > On 2017/05/23 12:36:47, junwei wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-24 16:40:20 UTC) #71
mcasas
On 2017/05/24 16:40:20, mcasas wrote: > On 2017/05/24 10:59:05, junwei wrote: > > On 2017/05/23 ...
3 years, 6 months ago (2017-05-31 16:25:51 UTC) #81
junwei
On 2017/05/31 16:25:51, mcasas wrote: > On 2017/05/24 16:40:20, mcasas wrote: > > On 2017/05/24 ...
3 years, 6 months ago (2017-06-01 00:29:11 UTC) #82
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/2875243002/310001
3 years, 6 months ago (2017-06-02 07:00:19 UTC) #90
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/454206)
3 years, 6 months ago (2017-06-02 07:08:12 UTC) #92
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/2875243002/310001
3 years, 6 months ago (2017-06-02 07:30:27 UTC) #95
commit-bot: I haz the power
Committed patchset #5 (id:310001) as https://chromium.googlesource.com/chromium/src/+/31eb1a542aea4050d9b17fd7255d366499dedede
3 years, 6 months ago (2017-06-02 07:36:11 UTC) #98
Dirk Pranke
3 years, 6 months ago (2017-06-07 19:55:31 UTC) #99
Message was sent while issue was closed.
rs- lgtm.

Powered by Google App Engine
This is Rietveld 408576698