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

Issue 2335573002: V4L2VideoDecodeAccelerator: destroy buffers in decoder thread. (Closed)

Created:
4 years, 3 months ago by wuchengli
Modified:
4 years, 3 months ago
Reviewers:
kcwu, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

V4L2VideoDecodeAccelerator: destroy buffers in decoder thread. Move destroying input and output buffers from child thread to decoder thread has two benefits. (1) Book accounting variables like output_buffer_map_ are only accessed in decoder thread. (2) kChangingResolution used to mean waiting for output buffers to destroy or waiting for processor to return frames. Now it only means waiting for processor. The code is simpler. BUG=b/29059119 TEST=Run VDA unittest, run video_VideoSeek test and play video on elm and peach pit. Committed: https://crrev.com/a9fcabff6db188adb5ef1a16803e7a7a5d8a05eb Cr-Commit-Position: refs/heads/master@{#420027}

Patch Set 1 : V4L2VideoDecodeAccelerator: destroy buffers in decoder thread. #

Total comments: 4

Patch Set 2 : log a warning if destroying EGL images fails #

Patch Set 3 : use EGL_TRUE in GenericV4L2Device::DestroyEGLImage. remove a log. #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : address Pawel's nits in PS4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -47 lines) Patch
M media/gpu/generic_v4l2_device.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.h View 1 2 3 4 5 3 chunks +11 lines, -12 lines 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 2 3 4 8 chunks +17 lines, -34 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
wuchengli
PTAL.
4 years, 3 months ago (2016-09-12 09:10:53 UTC) #3
kcwu
https://codereview.chromium.org/2335573002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2335573002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2161 media/gpu/v4l2_video_decode_accelerator.cc:2161: base::Bind(base::IgnoreResult(&V4L2Device::DestroyEGLImage), device_, Add log if destroy failed at least. ...
4 years, 3 months ago (2016-09-12 10:59:48 UTC) #4
wuchengli
https://codereview.chromium.org/2335573002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2335573002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2161 media/gpu/v4l2_video_decode_accelerator.cc:2161: base::Bind(base::IgnoreResult(&V4L2Device::DestroyEGLImage), device_, On 2016/09/12 10:59:48, kcwu wrote: > Add ...
4 years, 3 months ago (2016-09-12 11:15:36 UTC) #5
wuchengli
PTAL
4 years, 3 months ago (2016-09-13 09:26:15 UTC) #6
kcwu
lgtm
4 years, 3 months ago (2016-09-13 09:31:26 UTC) #7
Pawel Osciak
lgtm % nits https://codereview.chromium.org/2335573002/diff/120001/media/gpu/v4l2_video_decode_accelerator.h File media/gpu/v4l2_video_decode_accelerator.h (right): https://codereview.chromium.org/2335573002/diff/120001/media/gpu/v4l2_video_decode_accelerator.h#newcode136 media/gpu/v4l2_video_decode_accelerator.h:136: // Performing resolution change and waiting ...
4 years, 3 months ago (2016-09-15 07:51:43 UTC) #10
wuchengli
https://codereview.chromium.org/2335573002/diff/120001/media/gpu/v4l2_video_decode_accelerator.h File media/gpu/v4l2_video_decode_accelerator.h (right): https://codereview.chromium.org/2335573002/diff/120001/media/gpu/v4l2_video_decode_accelerator.h#newcode136 media/gpu/v4l2_video_decode_accelerator.h:136: // Performing resolution change and waiting image processor to ...
4 years, 3 months ago (2016-09-21 06:44:58 UTC) #11
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/2335573002/160001
4 years, 3 months ago (2016-09-21 09:01:14 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 3 months ago (2016-09-21 11:46:07 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 11:48:01 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a9fcabff6db188adb5ef1a16803e7a7a5d8a05eb
Cr-Commit-Position: refs/heads/master@{#420027}

Powered by Google App Engine
This is Rietveld 408576698