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

Issue 2513973002: Use mojo typemap to simplify the code using DmabufPlane (Closed)

Created:
4 years, 1 month ago by yoshiki
Modified:
4 years ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, posciak+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use mojo typemap to simplify the code using DmabufPlane This patch introduces a typemap for video_accelerator.mojom struct and allows to use arc::ArcVideoAcceleratorDmabufPlane directly without having to convert from the arc::mojom::DmabufPlane. BUG=665723 TEST=Ran YT and confirmed that histograms/Media.ArcGpuVideoDecodeAccelerator.InitializeResult is zero on chell and minnie Committed: https://crrev.com/2f600a079c2fb7e8d9b37e6c246100d5ecdd59f7 Cr-Commit-Position: refs/heads/master@{#438512}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments #

Total comments: 23

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Rebased #

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -37 lines) Patch
M chrome/gpu/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/gpu/arc_gpu_video_decode_accelerator.h View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/gpu/arc_gpu_video_decode_accelerator.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/gpu/arc_video_accelerator.h View 1 2 3 chunks +7 lines, -11 lines 0 comments Download
M chrome/gpu/gpu_arc_video_service.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/gpu/gpu_arc_video_service.cc View 1 2 chunks +5 lines, -19 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/common/typemaps.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A components/arc/common/video_accelerator.typemap View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A components/arc/video_accelerator/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A components/arc/video_accelerator/video_accelerator.h View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A components/arc/video_accelerator/video_accelerator_struct_traits.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A components/arc/video_accelerator/video_accelerator_struct_traits.cc View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (50 generated)
yoshiki
Yusuke-san, could you take a first look?
4 years, 1 month ago (2016-11-18 19:18:55 UTC) #7
yoshiki
Yusuke-san, ping
4 years ago (2016-11-29 18:09:42 UTC) #8
Luis Héctor Chávez
adding the real yusukes@.
4 years ago (2016-11-29 18:10:24 UTC) #10
yoshiki
On 2016/11/29 18:10:24, Luis Héctor Chávez wrote: > adding the real yusukes@. Ah, thanks.
4 years ago (2016-11-29 18:24:03 UTC) #11
Luis Héctor Chávez
drive-by https://codereview.chromium.org/2513973002/diff/1/chrome/gpu/gpu_arc_video_service.cc File chrome/gpu/gpu_arc_video_service.cc (right): https://codereview.chromium.org/2513973002/diff/1/chrome/gpu/gpu_arc_video_service.cc#newcode248 chrome/gpu/gpu_arc_video_service.cc:248: std::vector<::arc::ArcVideoAcceleratorDmabufPlane> planes(1); You can maybe directly initialize the ...
4 years ago (2016-11-29 18:25:36 UTC) #12
Yusuke Sato
https://codereview.chromium.org/2513973002/diff/1/components/arc/video_accelerator/video_accelerator.h File components/arc/video_accelerator/video_accelerator.h (right): https://codereview.chromium.org/2513973002/diff/1/components/arc/video_accelerator/video_accelerator.h#newcode14 components/arc/video_accelerator/video_accelerator.h:14: } On 2016/11/29 18:25:36, Luis Héctor Chávez wrote: > ...
4 years ago (2016-11-29 21:34:28 UTC) #14
yoshiki
Yusuke-san, Luis, PTAL. Thanks. https://codereview.chromium.org/2513973002/diff/1/chrome/gpu/gpu_arc_video_service.cc File chrome/gpu/gpu_arc_video_service.cc (right): https://codereview.chromium.org/2513973002/diff/1/chrome/gpu/gpu_arc_video_service.cc#newcode248 chrome/gpu/gpu_arc_video_service.cc:248: std::vector<::arc::ArcVideoAcceleratorDmabufPlane> planes(1); On 2016/11/29 18:25:35, ...
4 years ago (2016-11-30 17:25:45 UTC) #26
Luis Héctor Chávez
lgtm Adding dcheng@ for the struct_traits.h https://codereview.chromium.org/2513973002/diff/40001/components/arc/video_accelerator/video_accelerator_struct_traits.h File components/arc/video_accelerator/video_accelerator_struct_traits.h (right): https://codereview.chromium.org/2513973002/diff/40001/components/arc/video_accelerator/video_accelerator_struct_traits.h#newcode19 components/arc/video_accelerator/video_accelerator_struct_traits.h:19: static uint32_t stride(const ...
4 years ago (2016-11-30 17:57:01 UTC) #28
Yusuke Sato
lgtm with comments. Defer to gpu and security owners. Thanks Yoshiki for working on this. ...
4 years ago (2016-11-30 18:08:34 UTC) #29
dcheng
https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode213 chrome/gpu/arc_gpu_video_decode_accelerator.cc:213: current_size += plane.stride * rows; Btw, is it possible ...
4 years ago (2016-12-01 01:30:50 UTC) #30
Yusuke Sato
https://codereview.chromium.org/2513973002/diff/40001/components/arc/video_accelerator/video_accelerator_struct_traits.h File components/arc/video_accelerator/video_accelerator_struct_traits.h (right): https://codereview.chromium.org/2513973002/diff/40001/components/arc/video_accelerator/video_accelerator_struct_traits.h#newcode27 components/arc/video_accelerator/video_accelerator_struct_traits.h:27: return false; On 2016/12/01 01:30:50, dcheng wrote: > On ...
4 years ago (2016-12-01 02:23:08 UTC) #31
yoshiki
+posciak Powel, could you answer the 2 following questions, since you are the original author ...
4 years ago (2016-12-02 08:31:43 UTC) #33
yoshiki
+posciak Powel, could you answer the 2 following questions, since you are the original author ...
4 years ago (2016-12-02 08:31:47 UTC) #34
Pawel Osciak
https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc File chrome/gpu/arc_gpu_video_decode_accelerator.cc (right): https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/arc_gpu_video_decode_accelerator.cc#newcode213 chrome/gpu/arc_gpu_video_decode_accelerator.cc:213: current_size += plane.stride * rows; On 2016/12/02 08:31:43, yoshiki ...
4 years ago (2016-12-06 07:08:38 UTC) #35
yoshiki
dcheng@, I addressed your comments. PTAL again? Thanks. https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/DEPS File chrome/gpu/DEPS (right): https://codereview.chromium.org/2513973002/diff/40001/chrome/gpu/DEPS#newcode1 chrome/gpu/DEPS:1: include_rules ...
4 years ago (2016-12-06 16:48:34 UTC) #41
dcheng
lgtm
4 years ago (2016-12-06 18:12:27 UTC) #42
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/2513973002/60001
4 years ago (2016-12-07 02:11:49 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/320102)
4 years ago (2016-12-07 02:22:26 UTC) #47
yoshiki
Powel, PTAL at chrome/gpu/* changes and approve the CL? Thanks.
4 years ago (2016-12-07 03:14:53 UTC) #48
yoshiki
posciak@, ping?
4 years ago (2016-12-09 08:08:54 UTC) #49
Yusuke Sato
ping?
4 years ago (2016-12-13 21:17:04 UTC) #50
yoshiki
On 2016/12/13 21:17:04, Yusuke Sato (ooo Dec 16 to 31) wrote: > ping? I talked ...
4 years ago (2016-12-14 01:51:42 UTC) #51
yoshiki
On 2016/12/14 01:51:42, yoshiki wrote: > On 2016/12/13 21:17:04, Yusuke Sato (ooo Dec 16 to ...
4 years ago (2016-12-14 03:36:27 UTC) #53
Pawel Osciak
lgtm % nits https://codereview.chromium.org/2513973002/diff/60001/components/arc/video_accelerator/video_accelerator.h File components/arc/video_accelerator/video_accelerator.h (right): https://codereview.chromium.org/2513973002/diff/60001/components/arc/video_accelerator/video_accelerator.h#newcode5 components/arc/video_accelerator/video_accelerator.h:5: #ifndef COMPONENT_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_H_ s/COMPONENT/COMPONENTS/ https://codereview.chromium.org/2513973002/diff/60001/components/arc/video_accelerator/video_accelerator_struct_traits.cc File components/arc/video_accelerator/video_accelerator_struct_traits.cc ...
4 years ago (2016-12-14 08:53:14 UTC) #54
yoshiki
Thank you! Since I checked the InitializeResult value on minnie and chell as Powel guided ...
4 years ago (2016-12-14 14:18:04 UTC) #70
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/2513973002/140001
4 years ago (2016-12-14 14:18:27 UTC) #73
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years ago (2016-12-14 14:23:17 UTC) #76
commit-bot: I haz the power
4 years ago (2016-12-14 14:27:04 UTC) #78
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2f600a079c2fb7e8d9b37e6c246100d5ecdd59f7
Cr-Commit-Position: refs/heads/master@{#438512}

Powered by Google App Engine
This is Rietveld 408576698