-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types of setting objects #77
Comments
@gmandyam, if you're ok I'm ok. |
…tioning a x100 multiplier to avoid floating point.
@miguelao
|
@dontcallmedom, that's exactly what I mentioned in #120 (comment), but still "I feel that float can represent all of our value ranges and is smaller in size." Which one will win? |
but it's not really smaller in size - the underlying ecmascript engine only sees double. |
Closed per #120. |
Landed in chrome, see https://crbug.com/663021. |
…oCapabilities.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] w3c/mediacapture-image#77 BUG=663021 Review-Url: https://codereview.chromium.org/2482983002 Cr-Original-Commit-Position: refs/heads/master@{#431293} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 5a4284b492c9511bd41ccad6e53f339a6de409a3
Attributes such as exposureCompensation would be better as a double than a long x100. I can not see any disadvantage to using a double here.
The text was updated successfully, but these errors were encountered: