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

Issue 1215443003: [Android] Filter the unknown type in function GetDeviceSupportedFormats (Closed)

Created:
5 years, 5 months ago by legend
Modified:
5 years, 5 months ago
CC:
chromium-reviews, dcheng, johnme
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Filter the unknown type in function GetDeviceSupportedFormats Previously, default value is set to unknown type but finally it is put into the valid list without any processing. Since enum PIXEL_FORMAT_MAX is merged to PIXEL_FORMAT_UNKNOWN, it's better to filter unknown type. BUG=506520 Committed: https://crrev.com/cd131d403bc15f9a7aca116b14d08268a3c6aded Cr-Commit-Position: refs/heads/master@{#338247}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make continue in default label of switch() #

Patch Set 3 : Re-enable failing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M media/video/capture/android/video_capture_device_factory_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 2 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
legend
PTAL. Thanks!
5 years, 5 months ago (2015-07-03 03:09:50 UTC) #2
legend
We also found VideoCaptureDeviceTest.GetDeviceSupportedFormats failing in our unit tests on IA device. I guess PIXEL_FORMAT_MAX ...
5 years, 5 months ago (2015-07-03 03:21:46 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/1215443003/diff/1/media/video/capture/android/video_capture_device_factory_android.cc File media/video/capture/android/video_capture_device_factory_android.cc (right): https://codereview.chromium.org/1215443003/diff/1/media/video/capture/android/video_capture_device_factory_android.cc#newcode119 media/video/capture/android/video_capture_device_factory_android.cc:119: if (pixel_format == media::PIXEL_FORMAT_UNKNOWN) could we continue on the ...
5 years, 5 months ago (2015-07-03 08:52:41 UTC) #4
legend
On 2015/07/03 08:52:41, tommi wrote: > https://codereview.chromium.org/1215443003/diff/1/media/video/capture/android/video_capture_device_factory_android.cc > File media/video/capture/android/video_capture_device_factory_android.cc > (right): > > https://codereview.chromium.org/1215443003/diff/1/media/video/capture/android/video_capture_device_factory_android.cc#newcode119 ...
5 years, 5 months ago (2015-07-03 09:14:34 UTC) #5
legend
tommi@, dcheng@ could you please review again? And what do you think about recovering the ...
5 years, 5 months ago (2015-07-07 02:15:00 UTC) #6
dcheng
I don't think I'm familiar enough with this part of the code to review, sorry.
5 years, 5 months ago (2015-07-07 17:02:20 UTC) #7
legend
tommi@, mcasas@, could you please review this? Thanks!
5 years, 5 months ago (2015-07-09 03:17:32 UTC) #10
tommi (sloooow) - chröme
lgtm
5 years, 5 months ago (2015-07-09 14:24:45 UTC) #11
mcasas
lgtm
5 years, 5 months ago (2015-07-09 19:22:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1215443003/40001
5 years, 5 months ago (2015-07-10 05:16:17 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-10 07:39:42 UTC) #16
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 07:40:54 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cd131d403bc15f9a7aca116b14d08268a3c6aded
Cr-Commit-Position: refs/heads/master@{#338247}

Powered by Google App Engine
This is Rietveld 408576698