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

Issue 189993002: Start the VDA device poll thread in Initialize() (Closed)

Created:
6 years, 9 months ago by sheu
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Start the VDA device poll thread in Initialize() We may need to be returning completed input buffers from the device while we run DecodeBufferInitial() to set up the decoder. Start the device thread then in Initialize() so the device is polled for input buffers to return. This is can be necessary in some cases where the decoder may run out of buffers to enqueue inputs on while scanning for valid input starting positions. BUG=None TEST=local build, run on CrOS snow Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258097

Patch Set 1 : c0b94e10 Initial. #

Total comments: 2

Patch Set 2 : 2426734d Update. #

Total comments: 6

Patch Set 3 : c930ce4cc Comments. #

Patch Set 4 : fed18955 offline discussion with posciak@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 3 7 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
sheu
posciak@: PTAL. This should fix the stuck business for Tegra VDA.
6 years, 9 months ago (2014-03-07 04:05:22 UTC) #1
Pawel Osciak
https://chromiumcodereview.appspot.com/189993002/diff/1/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/1/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); Could you please explain/add to CL description why ...
6 years, 9 months ago (2014-03-07 06:14:46 UTC) #2
Pawel Osciak
On 2014/03/07 04:05:22, sheu wrote: > posciak@: PTAL. This should fix the stuck business for ...
6 years, 9 months ago (2014-03-07 06:15:17 UTC) #3
sheu
Updated. PTAL https://chromiumcodereview.appspot.com/189993002/diff/1/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/1/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); On 2014/03/07 06:14:47, Pawel Osciak wrote: ...
6 years, 9 months ago (2014-03-07 23:51:05 UTC) #4
Pawel Osciak
https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); Could you instead just: if (state != kUninitialized) ...
6 years, 9 months ago (2014-03-09 02:34:50 UTC) #5
sheu
https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); On 2014/03/09 02:34:50, Pawel Osciak wrote: > Could ...
6 years, 9 months ago (2014-03-10 19:38:42 UTC) #6
Pawel Osciak
https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); On 2014/03/10 19:38:42, sheu wrote: > On 2014/03/09 ...
6 years, 9 months ago (2014-03-11 00:07:43 UTC) #7
shivdasp
https://codereview.chromium.org/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc#newcode289 content/common/gpu/media/v4l2_video_decode_accelerator.cc:289: It seems there is a race condition here. The ...
6 years, 9 months ago (2014-03-12 12:12:26 UTC) #8
sheu
https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc File content/common/gpu/media/v4l2_video_decode_accelerator.cc (left): https://chromiumcodereview.appspot.com/189993002/diff/10001/content/common/gpu/media/v4l2_video_decode_accelerator.cc#oldcode1416 content/common/gpu/media/v4l2_video_decode_accelerator.cc:1416: NOTIFY_ERROR(PLATFORM_FAILURE); On 2014/03/11 00:07:44, Pawel Osciak wrote: > On ...
6 years, 9 months ago (2014-03-12 20:51:21 UTC) #9
sheu
For the record, I did run vda_unittests, flash video, and html5 video (with/without MSE). The ...
6 years, 9 months ago (2014-03-13 00:10:17 UTC) #10
sheu
Updated, per discussion.
6 years, 9 months ago (2014-03-13 06:23:49 UTC) #11
Pawel Osciak
lgtm Thanks for updating.
6 years, 9 months ago (2014-03-14 04:45:59 UTC) #12
sheu
Adding fischman@ for owners. PTAL, thanks!
6 years, 9 months ago (2014-03-14 06:54:34 UTC) #13
Ami GONE FROM CHROMIUM
LGTM % please update description to describe why the new functionality is interesting? (hinted at ...
6 years, 9 months ago (2014-03-16 01:42:18 UTC) #14
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-18 22:43:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/189993002/50001
6 years, 9 months ago (2014-03-18 22:47:03 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 22:55:17 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-18 22:55:18 UTC) #18
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-19 19:05:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/189993002/50001
6 years, 9 months ago (2014-03-19 19:06:48 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 21:16:18 UTC) #21
Message was sent while issue was closed.
Change committed as 258097

Powered by Google App Engine
This is Rietveld 408576698