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

Issue 2662173002: media: Don't create a new MediaCodec during AVDA teardown (Closed)

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

Description

media: Don't create a new MediaCodec during AVDA teardown OnDrainCompleted() is always called during AVDA teardown, and it previously always called ResetCodecState() which resulted in unnecessarily creating new MediaCodecs during shutdown whenever state_ was ERROR, or on older devices where flush() doesn't work. Now we don't bother calling ResetCodecState() during destruction, and we also don't try to recover from errors. Errors are generally unrecoverable, so retrying is usually a bad idea. BUG=688030 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2662173002 Cr-Commit-Position: refs/heads/master@{#450565} Committed: https://chromium.googlesource.com/chromium/src/+/1e1ea2bcd2e632ba3b3dcbd45ca3405771e57a9c

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -91 lines) Patch
M media/gpu/android_video_decode_accelerator.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 17 chunks +37 lines, -42 lines 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 2 2 chunks +77 lines, -40 lines 0 comments Download
M media/gpu/avda_codec_allocator.h View 1 2 3 chunks +9 lines, -7 lines 0 comments Download
M media/gpu/gpu_video_decode_accelerator_factory.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
watk
PTAL. The deferred reset logic was only for FLUSH drains, not RESETs or DESTROYs. We ...
3 years, 10 months ago (2017-01-31 02:10:56 UTC) #3
DaleCurtis
Ah, crappy; thought I fixed all the cases of this. lgtm - should definitely help ...
3 years, 10 months ago (2017-02-01 00:45:51 UTC) #8
DaleCurtis
+liberato fyi
3 years, 10 months ago (2017-02-01 00:46:06 UTC) #10
DaleCurtis
Should have a unit test which verifies only 1 codec is created probably :)
3 years, 10 months ago (2017-02-01 00:46:24 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/2662173002/20001
3 years, 10 months ago (2017-02-02 17:16:19 UTC) #14
watk
On 2017/02/01 00:46:24, DaleCurtis wrote: > Should have a unit test which verifies only 1 ...
3 years, 10 months ago (2017-02-03 19:07:39 UTC) #16
DaleCurtis
(fine in a followup cl)
3 years, 10 months ago (2017-02-03 19:30:38 UTC) #17
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/2662173002/20001
3 years, 10 months ago (2017-02-15 00:01:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/153579) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-15 00:07:25 UTC) #21
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/2662173002/40001
3 years, 10 months ago (2017-02-15 00:14:10 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/1e1ea2bcd2e632ba3b3dcbd45ca3405771e57a9c
3 years, 10 months ago (2017-02-15 05:42:52 UTC) #27
watk
That's awkward. I tried to just rebase the patchset that I'd already uploaded but I ...
3 years, 10 months ago (2017-02-15 21:43:18 UTC) #28
DaleCurtis
3 years, 10 months ago (2017-02-15 22:48:51 UTC) #29
Message was sent while issue was closed.
tests lgtm, always happy to have more tests :)

Powered by Google App Engine
This is Rietveld 408576698