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

Issue 1321423004: vda_unittest: Fix Flush() is not called when decoding is slow. (Closed)

Created:
5 years, 3 months ago by Owen Lin
Modified:
5 years, 3 months ago
Reviewers:
zallychao, wuchengli, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

vda_unittest: Fix Flush() is not called when decoding is slow. When |decode_calls_per_second_| is set (not 0), DecodeNextFragment() will be called at the given rate. When decoding is slow, a BitstreamBuffer may be released after the last DcodeNextFragment() being called. In that case, decoder's Flush() will not be called, and the test will hang forever. To fix this issue, we call Flush() when all BitstreamBuffers are processed in NotifyEndOfBitstreamBuffer(). BUG=439831 Test=Run the test on veyron_minnie patch from issue 791573002 at patchset 80001 (http://crrev.com/791573002#ps80001) Committed: https://crrev.com/b85621fa3e63cc4aaa8aff05f2cabc9206c5fab5 Cr-Commit-Position: refs/heads/master@{#347599}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments. #

Total comments: 2

Patch Set 3 : Add TODO for Pawel's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 2 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Owen Lin
PTAL. Thanks.
5 years, 3 months ago (2015-09-02 06:02:17 UTC) #2
wuchengli
lgtm https://codereview.chromium.org/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode735 content/common/gpu/media/video_decode_accelerator_unittest.cc:735: outstanding_decodes_ == 0) { No need to call ...
5 years, 3 months ago (2015-09-04 03:26:06 UTC) #4
Pawel Osciak
https://chromiumcodereview.appspot.com/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode735 content/common/gpu/media/video_decode_accelerator_unittest.cc:735: outstanding_decodes_ == 0) { Do we need to check ...
5 years, 3 months ago (2015-09-04 06:04:40 UTC) #5
Owen Lin
https://chromiumcodereview.appspot.com/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/1321423004/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode735 content/common/gpu/media/video_decode_accelerator_unittest.cc:735: outstanding_decodes_ == 0) { On 2015/09/04 03:26:06, wuchengli wrote: ...
5 years, 3 months ago (2015-09-04 07:15:44 UTC) #6
Pawel Osciak
lgtm % nit https://chromiumcodereview.appspot.com/1321423004/diff/20001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/1321423004/diff/20001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode735 content/common/gpu/media/video_decode_accelerator_unittest.cc:735: if (outstanding_decodes_ == 0) { Please ...
5 years, 3 months ago (2015-09-04 08:15:30 UTC) #7
Owen Lin
https://codereview.chromium.org/1321423004/diff/20001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/1321423004/diff/20001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode735 content/common/gpu/media/video_decode_accelerator_unittest.cc:735: if (outstanding_decodes_ == 0) { On 2015/09/04 08:15:30, Pawel ...
5 years, 3 months ago (2015-09-07 03:54:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321423004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321423004/40001
5 years, 3 months ago (2015-09-07 03:54:33 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-07 04:09:35 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-09-07 04:10:21 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b85621fa3e63cc4aaa8aff05f2cabc9206c5fab5
Cr-Commit-Position: refs/heads/master@{#347599}

Powered by Google App Engine
This is Rietveld 408576698