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

Issue 2787933002: ImageCapture: separate fillLightMode, redEyeReduction and Torch (Closed)

Created:
3 years, 8 months ago by mcasas
Modified:
3 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, haraken, Aaron Boodman, mcasas+imagecapture_chromium.org, blink-reviews, xjz+watch_chromium.org, darin (slow to review), miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: separate fillLightMode, redEyeReduction and Torch Implementation catch-up to some idl changes (already landed): - RedEyeReduction capability-reading-wise is changed from being a boolean to an enum ("never", "always", "controllable") - FillLightMode enum capability-reading-wise is changed to returning an array of supported capabilities (vs. on ToT where the _actual_ setting that was returned). It also loses the enum entries "none" and "torch": "torch" is separated, and the condition of "no fill light mode supported" is indicated via an empty supported mode array. - MediaTrackCapabilities/ConstraintSet's |torch| is wired all the way down to the implementations. Here and there I reordered the capabilities/settings manipulation to follow the idl definitions. BUG=700607 TEST=Update LayoutTests, capture_unittests and manual testing using e.g. https://rawgit.com/Miguelao/demos/master/imagecapture.html Review-Url: https://codereview.chromium.org/2787933002 Cr-Commit-Position: refs/heads/master@{#461293} Committed: https://chromium.googlesource.com/chromium/src/+/ca371a65982c6c43fc81dbb997271ed2aab6c9da

Patch Set 1 #

Patch Set 2 : corrected setOptions.html #

Total comments: 10

Patch Set 3 : reillyg@ comments #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -253 lines) Patch
M media/capture/mojo/image_capture.mojom View 3 chunks +41 lines, -23 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java View 1 2 3 7 chunks +26 lines, -13 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCapture.java View 1 chunk +17 lines, -16 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 1 4 chunks +25 lines, -29 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java View 1 2 6 chunks +33 lines, -37 lines 0 comments Download
M media/capture/video/android/photo_capabilities.h View 3 chunks +3 lines, -3 lines 0 comments Download
M media/capture/video/android/photo_capabilities.cc View 1 2 1 chunk +22 lines, -4 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 2 4 chunks +42 lines, -36 lines 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 2 chunks +23 lines, -16 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 2 chunks +28 lines, -23 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html View 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getCapabilities.html View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getSettings.html View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html View 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 3 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/setoptions.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 2 8 chunks +30 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp View 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 21 (15 generated)
mcasas
reillyg@ PTAL tsepez@ RS plz mojom changes
3 years, 8 months ago (2017-03-31 17:16:11 UTC) #6
Tom Sepez
mojom LGTM
3 years, 8 months ago (2017-03-31 17:32:54 UTC) #7
Reilly Grant (use Gerrit)
lgtm with nits https://codereview.chromium.org/2787933002/diff/80001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2787933002/diff/80001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode563 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:563: builder.setFillLightModes(modesAsIntArray); builder.setFillLightModes(modes.toArray(new int[modes.size()])); https://codereview.chromium.org/2787933002/diff/80001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java ...
3 years, 8 months ago (2017-03-31 20:13:09 UTC) #9
mcasas
https://codereview.chromium.org/2787933002/diff/80001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2787933002/diff/80001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode563 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:563: builder.setFillLightModes(modesAsIntArray); On 2017/03/31 20:13:09, Reilly Grant wrote: > builder.setFillLightModes(modes.toArray(new ...
3 years, 8 months ago (2017-03-31 21:14:47 UTC) #13
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/2787933002/130001
3 years, 8 months ago (2017-03-31 22:59:02 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-01 00:58:33 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/ca371a65982c6c43fc81dbb99727...

Powered by Google App Engine
This is Rietveld 408576698