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

Issue 1345993002: Change the functions in video_capture_device to pass around PowerLineFrequency enums instead of int… (Closed)

Created:
5 years, 3 months ago by suvanjanmukherjee
Modified:
5 years, 2 months ago
Reviewers:
mcasas, dcheng, ajose, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the functions in video_capture_device to pass around PowerLineFrequency enums instead of integers to reduce the amount of static casting required BUG=525167 Committed: https://crrev.com/8c98c566c838ec5f22964ff066a3e16262023f64 Cr-Commit-Position: refs/heads/master@{#352234}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix formatting issues and small changes as per suggestions from reviews #

Total comments: 1

Patch Set 3 : Fixed formatting issue pointed out of ajose #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -30 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_capture_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.h View 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/linux/video_capture_device_linux.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 1 2 4 chunks +9 lines, -8 lines 0 comments Download
M media/capture/video/video_capture_device.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device.cc View 1 2 chunks +8 lines, -7 lines 1 comment Download
M media/capture/video/win/video_capture_device_win.cc View 1 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
suvanjanmukherjee
Started on a new branch hence no longer using https://codereview.chromium.org/1323093006/ Kept the PowerLineFrequency as an ...
5 years, 3 months ago (2015-09-16 01:05:07 UTC) #2
dcheng
lgtm
5 years, 3 months ago (2015-09-17 00:19:52 UTC) #3
ajose
Looking good! +mcasas@ want to glance at this? https://codereview.chromium.org/1345993002/diff/1/media/capture/video/linux/video_capture_device_linux.cc File media/capture/video/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/1345993002/diff/1/media/capture/video/linux/video_capture_device_linux.cc#newcode136 media/capture/video/linux/video_capture_device_linux.cc:136: PowerLineFrequency ...
5 years, 3 months ago (2015-09-17 19:33:32 UTC) #5
wolenetz
media/base lgtm media/capture/video: I'm leaving full review to OWNERs of that code
5 years, 3 months ago (2015-09-17 20:47:49 UTC) #6
mcasas
A few comments. Ran the trybots for you. https://codereview.chromium.org/1345993002/diff/1/media/capture/video/linux/video_capture_device_linux.cc File media/capture/video/linux/video_capture_device_linux.cc (right): https://codereview.chromium.org/1345993002/diff/1/media/capture/video/linux/video_capture_device_linux.cc#newcode136 media/capture/video/linux/video_capture_device_linux.cc:136: PowerLineFrequency ...
5 years, 3 months ago (2015-09-21 15:30:07 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345993002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345993002/1
5 years, 3 months ago (2015-09-21 15:30:16 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-21 16:56:04 UTC) #11
suvanjanmukherjee
Ran git cl format. Also incorporated suggestions from ajose and mcasas to add const and ...
5 years, 2 months ago (2015-09-27 13:22:58 UTC) #12
ajose
lgtm % nit https://codereview.chromium.org/1345993002/diff/20001/media/capture/video/mac/video_capture_device_mac.mm File media/capture/video/mac/video_capture_device_mac.mm (right): https://codereview.chromium.org/1345993002/diff/20001/media/capture/video/mac/video_capture_device_mac.mm#newcode277 media/capture/video/mac/video_capture_device_mac.mm:277: == PowerLineFrequency::FREQUENCY_DEFAULT) 1 line?
5 years, 2 months ago (2015-09-29 22:10:14 UTC) #13
suvanjanmukherjee
Fixed formatting issue pointed out by ajose. Waiting for approval from mcasas before I can ...
5 years, 2 months ago (2015-10-01 23:39:32 UTC) #14
mcasas
LGTM, thanks for tackling this! https://chromiumcodereview.appspot.com/1345993002/diff/40001/media/capture/video/video_capture_device.cc File media/capture/video/video_capture_device.cc (right): https://chromiumcodereview.appspot.com/1345993002/diff/40001/media/capture/video/video_capture_device.cc#newcode143 media/capture/video/video_capture_device.cc:143: const std::string current_country = ...
5 years, 2 months ago (2015-10-02 19:02:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345993002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345993002/40001
5 years, 2 months ago (2015-10-03 02:14:21 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-03 03:44:00 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-10-03 03:45:03 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8c98c566c838ec5f22964ff066a3e16262023f64
Cr-Commit-Position: refs/heads/master@{#352234}

Powered by Google App Engine
This is Rietveld 408576698