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

Issue 1953683002: Add stride for imported Dmabuf in ArcVideoAccelerator. (Closed)

Created:
4 years, 7 months ago by Owen Lin
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, wuchengli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add stride for imported Dmabuf in ArcVideoAccelerator. We need the stride information so that the hardware codec knows how to fill the buffer. BUG=b/28783710 TEST=Play video in YouTube and ApiDemos on ARC Committed: https://crrev.com/df2a3c6dbef2976dc03827d99c0370aa479dfc5a Cr-Commit-Position: refs/heads/master@{#395285}

Patch Set 1 #

Total comments: 9

Patch Set 2 : address kcwu's comments #

Total comments: 6

Patch Set 3 : address dcheng's review comments #

Total comments: 10

Patch Set 4 : address dcheng's comments #

Patch Set 5 : address review comments #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : reject negative stride #

Patch Set 8 : verify the stride. #

Total comments: 4

Patch Set 9 : address dcheng's comments #

Total comments: 1

Patch Set 10 : rebase and update video host's version #

Patch Set 11 : address posciak's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -31 lines) Patch
M chrome/gpu/arc_gpu_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +27 lines, -8 lines 0 comments Download
M chrome/gpu/arc_gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +72 lines, -17 lines 0 comments Download
M chrome/gpu/arc_video_accelerator.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/gpu/gpu_arc_video_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M components/arc/common/video.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/arc/common/video_accelerator.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (12 generated)
Owen Lin
PTAL.
4 years, 7 months ago (2016-05-05 08:07:47 UTC) #2
kcwu
https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.h File chrome/gpu/arc_gpu_video_decode_accelerator.h (right): https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.h#newcode85 chrome/gpu/arc_gpu_video_decode_accelerator.h:85: InputBufferInfo() = default; IIUC, please put these "= default" ...
4 years, 7 months ago (2016-05-05 10:10:05 UTC) #3
Owen Lin
Hi dcheng@, please help reviewing the mojom file. So many thanks. https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_gpu_video_decode_accelerator.h File chrome/gpu/arc_gpu_video_decode_accelerator.h (right): ...
4 years, 7 months ago (2016-05-06 05:38:34 UTC) #5
dcheng
https://codereview.chromium.org/1953683002/diff/20001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1953683002/diff/20001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode375 chrome/gpu/arc_gpu_video_decode_accelerator.cc:375: base::FileDescriptor(info.handle.release(), true); (My question about how this fd ends ...
4 years, 7 months ago (2016-05-07 06:22:57 UTC) #6
Owen Lin
https://codereview.chromium.org/1953683002/diff/20001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1953683002/diff/20001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode375 chrome/gpu/arc_gpu_video_decode_accelerator.cc:375: base::FileDescriptor(info.handle.release(), true); On 2016/05/07 06:22:56, dcheng wrote: > (My ...
4 years, 7 months ago (2016-05-09 07:30:16 UTC) #7
Pawel Osciak
https://codereview.chromium.org/1953683002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.h File chrome/gpu/arc_gpu_video_decode_accelerator.h (right): https://codereview.chromium.org/1953683002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.h#newcode46 chrome/gpu/arc_gpu_video_decode_accelerator.h:46: int32_t stride) override; size_t? https://codereview.chromium.org/1953683002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.h#newcode82 chrome/gpu/arc_gpu_video_decode_accelerator.h:82: off_t offset = ...
4 years, 7 months ago (2016-05-09 07:34:53 UTC) #8
Owen Lin
Hi scherkus@, we are trying to add stride for the output buffers used in ARC++. ...
4 years, 7 months ago (2016-05-09 08:04:54 UTC) #10
kcwu
https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_video_accelerator.h File chrome/gpu/arc_video_accelerator.h (right): https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_video_accelerator.h#newcode128 chrome/gpu/arc_video_accelerator.h:128: int32_t stride) = 0; On 2016/05/05 10:10:05, kcwu wrote: ...
4 years, 7 months ago (2016-05-09 08:54:30 UTC) #11
scherkus (not reviewing)
On 2016/05/09 08:04:54, Owen Lin wrote: > Hi scherkus@, we are trying to add stride ...
4 years, 7 months ago (2016-05-09 16:51:16 UTC) #12
Owen Lin
PTAL. Thanks. https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_video_accelerator.h File chrome/gpu/arc_video_accelerator.h (right): https://codereview.chromium.org/1953683002/diff/1/chrome/gpu/arc_video_accelerator.h#newcode128 chrome/gpu/arc_video_accelerator.h:128: int32_t stride) = 0; On 2016/05/09 08:54:30, ...
4 years, 7 months ago (2016-05-11 01:39:59 UTC) #13
Pawel Osciak
lgtm https://codereview.chromium.org/1953683002/diff/80001/chrome/gpu/arc_gpu_video_decode_accelerator.h File chrome/gpu/arc_gpu_video_decode_accelerator.h (right): https://codereview.chromium.org/1953683002/diff/80001/chrome/gpu/arc_gpu_video_decode_accelerator.h#newcode86 chrome/gpu/arc_gpu_video_decode_accelerator.h:86: // The length of the payload. size of ...
4 years, 7 months ago (2016-05-11 01:53:57 UTC) #14
Owen Lin
Hi dcheng@, need your approval for the mojom file. PTAL. Thanks.
4 years, 7 months ago (2016-05-12 02:00:34 UTC) #15
dcheng
I don't think my question about stride has been answered yet: what happens if it's ...
4 years, 7 months ago (2016-05-12 02:52:25 UTC) #16
owenlin_google
On 2016/05/12 02:52:25, dcheng wrote: > I don't think my question about stride has been ...
4 years, 7 months ago (2016-05-12 06:13:14 UTC) #17
dcheng
On 2016/05/12 at 06:13:14, owenlin wrote: > On 2016/05/12 02:52:25, dcheng wrote: > > I ...
4 years, 7 months ago (2016-05-13 06:06:42 UTC) #19
Owen Lin
On 2016/05/13 06:06:42, dcheng wrote: > On 2016/05/12 at 06:13:14, owenlin wrote: > > On ...
4 years, 7 months ago (2016-05-13 06:50:20 UTC) #20
Owen Lin
4 years, 7 months ago (2016-05-13 06:50:44 UTC) #22
dcheng
On 2016/05/13 at 06:50:20, owenlin wrote: > On 2016/05/13 06:06:42, dcheng wrote: > > On ...
4 years, 7 months ago (2016-05-13 21:36:51 UTC) #24
Owen Lin
On 2016/05/13 21:36:51, dcheng wrote: > On 2016/05/13 at 06:50:20, owenlin wrote: > > On ...
4 years, 7 months ago (2016-05-16 09:54:05 UTC) #25
dcheng
https://codereview.chromium.org/1953683002/diff/140001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1953683002/diff/140001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode178 chrome/gpu/arc_gpu_video_decode_accelerator.cc:178: height = height * 3 / 2; What happens ...
4 years, 7 months ago (2016-05-17 01:12:28 UTC) #26
Owen Lin
https://codereview.chromium.org/1953683002/diff/140001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1953683002/diff/140001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode178 chrome/gpu/arc_gpu_video_decode_accelerator.cc:178: height = height * 3 / 2; On 2016/05/17 ...
4 years, 7 months ago (2016-05-17 08:52:16 UTC) #27
dcheng
https://codereview.chromium.org/1953683002/diff/160001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/1953683002/diff/160001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode179 chrome/gpu/arc_gpu_video_decode_accelerator.cc:179: DCHECK(height % 2 == 0); // The coded height ...
4 years, 7 months ago (2016-05-17 18:56:15 UTC) #28
dcheng
lgtm
4 years, 7 months ago (2016-05-18 01:29:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953683002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953683002/200001
4 years, 7 months ago (2016-05-23 02:35:51 UTC) #33
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-23 04:39:42 UTC) #36
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 04:41:31 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/df2a3c6dbef2976dc03827d99c0370aa479dfc5a
Cr-Commit-Position: refs/heads/master@{#395285}

Powered by Google App Engine
This is Rietveld 408576698