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

Issue 2873143002: Image Capture: wire setPhotoOptions() for Win (Closed)

Created:
3 years, 7 months ago by mcasas
Modified:
3 years, 7 months ago
Reviewers:
robliao
CC:
chromium-reviews, msramek+watch_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, raymes+watch_chromium.org, feature-media-reviews_chromium.org, xjz+watch_chromium.org, mfoltz+watch_chromium.org, markusheintz_, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture: wire setPhotoOptions() for Win This CL wires the photo capabilities setPhotoOptions() method: - |camera_control_| and |video_control_| are made member variables, which forces trivial updates to the lambdas. - most of the controls are straightforward except white balance and exposure: those have a 'manual' and 'auto' that enable the use of |color_temperature| and |exposure_compensation|, resp. Since either of them can be configured in subsequent setPhotoOptions() cycles, we need member flags to keep the manual/auto state. BUG=657128 Review-Url: https://codereview.chromium.org/2873143002 Cr-Commit-Position: refs/heads/master@{#471554} Committed: https://chromium.googlesource.com/chromium/src/+/86adb2c88ba82194458ac09d078a00616c0b22dd

Patch Set 1 #

Total comments: 6

Patch Set 2 : robliao@s comments, rebase and added capabilities width/height reading #

Total comments: 4

Patch Set 3 : Correct wrong human rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -76 lines) Patch
M media/capture/video/win/video_capture_device_win.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M media/capture/video/win/video_capture_device_win.cc View 1 2 6 chunks +150 lines, -76 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
mcasas
robliao@ PTAL
3 years, 7 months ago (2017-05-10 17:53:03 UTC) #4
robliao
https://codereview.chromium.org/2873143002/diff/20001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2873143002/diff/20001/components/content_settings/core/browser/host_content_settings_map.cc#newcode243 components/content_settings/core/browser/host_content_settings_map.cc:243: // DCHECK_NE(used_from_thread_id_, base::kInvalidThreadId) Should this code instead be deleted ...
3 years, 7 months ago (2017-05-11 05:14:07 UTC) #5
mcasas
ptal! https://codereview.chromium.org/2873143002/diff/20001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/2873143002/diff/20001/components/content_settings/core/browser/host_content_settings_map.cc#newcode243 components/content_settings/core/browser/host_content_settings_map.cc:243: // DCHECK_NE(used_from_thread_id_, base::kInvalidThreadId) On 2017/05/11 05:14:07, robliao wrote: ...
3 years, 7 months ago (2017-05-12 18:52:49 UTC) #7
robliao
A few more questions: Nit: setOptions() -> setPhotoOptions() in description https://codereview.chromium.org/2873143002/diff/60001/media/capture/video/win/video_capture_device_win.cc File media/capture/video/win/video_capture_device_win.cc (right): https://codereview.chromium.org/2873143002/diff/60001/media/capture/video/win/video_capture_device_win.cc#newcode492 ...
3 years, 7 months ago (2017-05-12 19:34:30 UTC) #8
mcasas
ptal https://codereview.chromium.org/2873143002/diff/60001/media/capture/video/win/video_capture_device_win.cc File media/capture/video/win/video_capture_device_win.cc (right): https://codereview.chromium.org/2873143002/diff/60001/media/capture/video/win/video_capture_device_win.cc#newcode492 media/capture/video/win/video_capture_device_win.cc:492: i, IID_PPV_ARGS(camera_control_.GetAddressOf())); On 2017/05/12 19:34:30, robliao wrote: > ...
3 years, 7 months ago (2017-05-12 21:27:04 UTC) #10
robliao
Windows Usage lgtm.
3 years, 7 months ago (2017-05-12 21:46:02 UTC) #11
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/2873143002/80001
3 years, 7 months ago (2017-05-13 01:39:11 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/86adb2c88ba82194458ac09d078a00616c0b22dd
3 years, 7 months ago (2017-05-13 03:59:56 UTC) #19
mcasas
A revert of this CL (patchset #3 id:80001) has been created in https://codereview.chromium.org/2876303002/ by mcasas@chromium.org. ...
3 years, 7 months ago (2017-05-13 04:16:29 UTC) #20
findit-for-me
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 471554 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-13 04:44:20 UTC) #21
robliao
3 years, 7 months ago (2017-05-15 16:07:47 UTC) #22
Message was sent while issue was closed.
On 2017/05/13 04:44:20, findit-for-me wrote:
> Findit (https://goo.gl/kROfz5) confirmed this CL at revision 471554 as the
> culprit for
> failures in the build cycles as shown on:
>
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

DLOG_IF_FAILED_WITH_HRESULT, unlike DCHECK, actually removes the statement from
the compilation. Looks like a few UNREFERENCED_PARAMETER's might be in order.

Alternatively you can structure this as...

if (FAILED(statement)) {
  DLOG(WARNING) << "Messaage here"
}

Powered by Google App Engine
This is Rietveld 408576698