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

Issue 1097913002: Remove kIgnoreResolutionLimitsForAcceleratedVideoDecode flag (Closed)

Created:
5 years, 8 months ago by henryhsu
Modified:
5 years, 7 months ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, creis+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org, dzhioev+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove kIgnoreResolutionLimitsForAcceleratedVideoDecode flag Since decoder supports GetSupportedProfiles and v4l2 supports ENUM_FRAMESIZES, this flag can be removed and use runtime detection to get maximum resolution for a specified profile. BUG=350197 TEST=manually test pass on peach_pit, peach_pi, nyan_big and veyron_jerry. Committed: https://crrev.com/3d20a9d06d9dda27e069d07e9eb358a44633ca1c Cr-Commit-Position: refs/heads/master@{#329395}

Patch Set 1 #

Total comments: 16

Patch Set 2 : address review comments #

Total comments: 2

Patch Set 3 : #

Total comments: 27

Patch Set 4 : address comments #

Total comments: 14

Patch Set 5 : #

Total comments: 1

Patch Set 6 : fix nits #

Total comments: 12

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Total comments: 12

Patch Set 9 : address Pawel's comments #

Total comments: 9

Patch Set 10 : #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -90 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/media/generic_v4l2_device.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/media/generic_v4l2_device.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/tegra_v4l2_device.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/media/tegra_v4l2_device.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/v4l2_device.h View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_device.cc View 1 2 3 4 5 6 7 8 9 2 chunks +97 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -35 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -39 lines 0 comments Download
M content/common/gpu/media/v4l2_video_encode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
henryhsu
PTAL
5 years, 8 months ago (2015-04-20 10:54:21 UTC) #1
henryhsu
5 years, 8 months ago (2015-04-20 10:54:56 UTC) #3
wuchengli
Please test on veyron. https://codereview.chromium.org/1097913002/diff/1/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/1/content/common/gpu/media/v4l2_device.cc#newcode201 content/common/gpu/media/v4l2_device.cc:201: gfx::Size V4L2Device::GetSupportedMaxResolution( s/GetSupportedMaxResolution/GetMaxSupportedResolution/ https://codereview.chromium.org/1097913002/diff/1/content/common/gpu/media/v4l2_device.cc#newcode203 content/common/gpu/media/v4l2_device.cc:203: ...
5 years, 8 months ago (2015-04-20 14:05:16 UTC) #4
henryhsu
PTAL https://codereview.chromium.org/1097913002/diff/1/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/1/content/common/gpu/media/v4l2_device.cc#newcode201 content/common/gpu/media/v4l2_device.cc:201: gfx::Size V4L2Device::GetSupportedMaxResolution( On 2015/04/20 14:05:16, wuchengli wrote: > ...
5 years, 8 months ago (2015-04-21 05:56:28 UTC) #5
wuchengli
https://codereview.chromium.org/1097913002/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/1097913002/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode1 chrome/browser/chromeos/login/chrome_restart_request.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
5 years, 8 months ago (2015-04-21 08:46:42 UTC) #6
Pawel Osciak
https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc#newcode206 content/common/gpu/media/v4l2_device.cc:206: if (frame_size.type == V4L2_FRMIVAL_TYPE_DISCRETE) { This define is for ...
5 years, 8 months ago (2015-04-22 08:50:56 UTC) #7
Pawel Osciak
https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc#newcode211 content/common/gpu/media/v4l2_device.cc:211: max_resolution.SetSize(frame_size.discrete.width, On 2015/04/22 08:50:55, Pawel Osciak wrote: > If ...
5 years, 8 months ago (2015-04-22 10:01:38 UTC) #8
henryhsu
PTAL https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/40001/content/common/gpu/media/v4l2_device.cc#newcode206 content/common/gpu/media/v4l2_device.cc:206: if (frame_size.type == V4L2_FRMIVAL_TYPE_DISCRETE) { On 2015/04/22 08:50:55, ...
5 years, 8 months ago (2015-04-23 03:56:43 UTC) #9
wuchengli
https://codereview.chromium.org/1097913002/diff/60001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/60001/content/common/gpu/media/v4l2_device.cc#newcode222 content/common/gpu/media/v4l2_device.cc:222: << pixelformat << ", fall back to 1088p"; 1088p ...
5 years, 8 months ago (2015-04-23 07:11:45 UTC) #10
henryhsu
all done https://codereview.chromium.org/1097913002/diff/60001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/60001/content/common/gpu/media/v4l2_device.cc#newcode222 content/common/gpu/media/v4l2_device.cc:222: << pixelformat << ", fall back to ...
5 years, 8 months ago (2015-04-23 08:21:54 UTC) #11
wuchengli
lgtm https://codereview.chromium.org/1097913002/diff/80001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/80001/content/common/gpu/media/v4l2_device.cc#newcode234 content/common/gpu/media/v4l2_device.cc:234: CHECK_EQ(type_, kDecoder); s/CHECK/DCHECK/. We should not crash the ...
5 years, 8 months ago (2015-04-24 02:45:40 UTC) #12
henryhsu
xhwang@chromium.org: Please review changes in piman@chromium.org: Please review changes in Hi piman and xhwang, Please ...
5 years, 8 months ago (2015-04-24 03:01:50 UTC) #14
henryhsu
On 2015/04/24 03:01:50, henryhsu wrote: > mailto:xhwang@chromium.org: Please review changes in > > mailto:piman@chromium.org: Please ...
5 years, 8 months ago (2015-04-24 03:13:40 UTC) #15
piman
https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.h File content/common/gpu/media/v4l2_device.h (right): https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.h#newcode119 content/common/gpu/media/v4l2_device.h:119: V4L2Device(Type type); nit: explicit https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc File content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc (right): https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc#newcode2510 ...
5 years, 8 months ago (2015-04-24 03:16:29 UTC) #16
henryhsu
all done https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.h File content/common/gpu/media/v4l2_device.h (right): https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.h#newcode119 content/common/gpu/media/v4l2_device.h:119: V4L2Device(Type type); On 2015/04/24 03:16:29, piman (Very ...
5 years, 8 months ago (2015-04-24 05:25:46 UTC) #17
xhwang
media/ lgtm
5 years, 8 months ago (2015-04-24 05:40:02 UTC) #18
Pawel Osciak
https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.cc#newcode247 content/common/gpu/media/v4l2_device.cc:247: switch (fmtdesc.pixelformat) { We may start missing something in ...
5 years, 8 months ago (2015-04-24 05:55:51 UTC) #19
henryhsu
https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/100001/content/common/gpu/media/v4l2_device.cc#newcode247 content/common/gpu/media/v4l2_device.cc:247: switch (fmtdesc.pixelformat) { On 2015/04/24 05:55:51, Pawel Osciak wrote: ...
5 years, 8 months ago (2015-04-24 07:07:29 UTC) #20
Pawel Osciak
https://codereview.chromium.org/1097913002/diff/140001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/140001/content/common/gpu/media/v4l2_device.cc#newcode237 content/common/gpu/media/v4l2_device.cc:237: profile.min_resolution.SetSize(16, 16); Framesize API also supports minimum resolution, there ...
5 years, 8 months ago (2015-04-27 05:36:15 UTC) #21
henryhsu
https://codereview.chromium.org/1097913002/diff/140001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/140001/content/common/gpu/media/v4l2_device.cc#newcode237 content/common/gpu/media/v4l2_device.cc:237: profile.min_resolution.SetSize(16, 16); On 2015/04/27 05:36:15, Pawel Osciak wrote: > ...
5 years, 8 months ago (2015-04-27 07:23:51 UTC) #22
piman
lgtm https://codereview.chromium.org/1097913002/diff/120001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc File content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc (right): https://codereview.chromium.org/1097913002/diff/120001/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc#newcode2510 content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc:2510: V4L2_PIX_FMT_H264_SLICE, V4L2_PIX_FMT_VP8_FRAME}; nit: } on next line https://codereview.chromium.org/1097913002/diff/120001/content/common/gpu/media/v4l2_video_decode_accelerator.cc ...
5 years, 8 months ago (2015-04-27 23:00:29 UTC) #23
Pawel Osciak
https://codereview.chromium.org/1097913002/diff/160001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/160001/content/common/gpu/media/v4l2_device.cc#newcode243 content/common/gpu/media/v4l2_device.cc:243: if (min_resolution->IsEmpty()) { Hm, I'm wondering what we should ...
5 years, 7 months ago (2015-04-28 01:35:33 UTC) #24
henryhsu
https://codereview.chromium.org/1097913002/diff/160001/content/common/gpu/media/v4l2_device.cc File content/common/gpu/media/v4l2_device.cc (right): https://codereview.chromium.org/1097913002/diff/160001/content/common/gpu/media/v4l2_device.cc#newcode246 content/common/gpu/media/v4l2_device.cc:246: << ", fall back to 16x16."; On 2015/04/28 01:35:33, ...
5 years, 7 months ago (2015-04-28 05:06:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097913002/200001
5 years, 7 months ago (2015-05-12 08:35:47 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 7 months ago (2015-05-12 13:05:02 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 13:06:04 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3d20a9d06d9dda27e069d07e9eb358a44633ca1c
Cr-Commit-Position: refs/heads/master@{#329395}

Powered by Google App Engine
This is Rietveld 408576698