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

Issue 2482983002: MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl (Closed)

Created:
4 years, 1 month ago by mcasas
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, haraken, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl This CL follows issue [1] in replacing integer types with doubles in the capabilities/settings idl (WebIdl encourages doubles and discourages floats). The change is rippled down to the mojom and the implementations. In Android: - Reading capabilities and status are changed to using double. - Configuring settings are changed to use doubles. - zoom and exposure compensation setting/reading don't need to have x100 multipliers anymore, removed. Otherwise: - v4l2_capture_delegate.cc bugfix: unnecessary scaling of zoom during setting (unmatched on retrieving). - FakeVideoCaptureDevice changes to doubles. [1] https://github.com/w3c/mediacapture-image/issues/77 BUG=663021 Committed: https://crrev.com/5a4284b492c9511bd41ccad6e53f339a6de409a3 Cr-Commit-Position: refs/heads/master@{#431293}

Patch Set 1 : floats to doubles #

Total comments: 6

Patch Set 2 : reillyg@s comments #

Total comments: 4

Patch Set 3 : s/float/double/ in fake_video_capture_device.* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -188 lines) Patch
M media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java View 1 7 chunks +36 lines, -36 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCapture.java View 2 chunks +6 lines, -5 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 1 6 chunks +16 lines, -19 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java View 1 5 chunks +23 lines, -28 lines 0 comments Download
M media/capture/video/android/photo_capabilities.h View 1 1 chunk +8 lines, -8 lines 0 comments Download
M media/capture/video/android/photo_capabilities.cc View 1 2 chunks +8 lines, -8 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 3 chunks +12 lines, -8 lines 0 comments Download
M media/capture/video/fake_video_capture_device.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 1 2 3 chunks +13 lines, -13 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M media/mojo/interfaces/image_capture.mojom View 3 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/setoptions.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h View 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoSettings.idl View 1 chunk +10 lines, -11 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
mcasas
reillyg@ PTAL
4 years, 1 month ago (2016-11-09 17:56:19 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2482983002/diff/120001/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java File media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java (right): https://codereview.chromium.org/2482983002/diff/120001/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java#newcode27 media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java:27: public final float maxZoom; I think we should just ...
4 years, 1 month ago (2016-11-09 21:16:55 UTC) #13
mcasas
reillyg@ comments addressed, ptal tsepez@ RS the s/uint32/double/ change in the .mojom, thx https://codereview.chromium.org/2482983002/diff/120001/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java File ...
4 years, 1 month ago (2016-11-09 22:44:14 UTC) #16
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/2482983002/diff/140001/media/capture/video/fake_video_capture_device.cc File media/capture/video/fake_video_capture_device.cc (right): https://codereview.chromium.org/2482983002/diff/140001/media/capture/video/fake_video_capture_device.cc#newcode88 media/capture/video/fake_video_capture_device.cc:88: float zoom) { s/float/double/ https://codereview.chromium.org/2482983002/diff/140001/media/capture/video/fake_video_capture_device.h File media/capture/video/fake_video_capture_device.h (right): ...
4 years, 1 month ago (2016-11-10 01:00:07 UTC) #19
mcasas
https://codereview.chromium.org/2482983002/diff/140001/media/capture/video/fake_video_capture_device.cc File media/capture/video/fake_video_capture_device.cc (right): https://codereview.chromium.org/2482983002/diff/140001/media/capture/video/fake_video_capture_device.cc#newcode88 media/capture/video/fake_video_capture_device.cc:88: float zoom) { On 2016/11/10 01:00:07, Reilly Grant wrote: ...
4 years, 1 month ago (2016-11-10 06:26:30 UTC) #24
Tom Sepez
RS LGTM
4 years, 1 month ago (2016-11-10 16:51:46 UTC) #27
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/2482983002/150001
4 years, 1 month ago (2016-11-10 18:12:19 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:150001)
4 years, 1 month ago (2016-11-10 18:17:53 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 18:38:44 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5a4284b492c9511bd41ccad6e53f339a6de409a3
Cr-Commit-Position: refs/heads/master@{#431293}

Powered by Google App Engine
This is Rietveld 408576698