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

Issue 7461154: Support queuing input buffers when OMX's buffer list is exhausted. (Closed)

Created:
9 years, 4 months ago by Ami GONE FROM CHROMIUM
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), piman, vjain, cfreeman, vhiremath
Visibility:
Public.

Description

Support queuing input buffers when OMX's buffer list is exhausted. Previously we'd crash (DCHECK in Debug, SEGV in Release) if the client (plugin) requested more than 10 concurrent Decode()s, because that's how many input buffers the OMX component would have. Now we just queue extra Decode()s and drain them as we get buffers back from the decoder. Added test coverage. BUG=none TEST=ovdatest, gles2 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96615

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -39 lines) Patch
M content/common/gpu/media/omx_video_decode_accelerator.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.cc View 4 chunks +13 lines, -10 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator_unittest.cc View 12 chunks +42 lines, -25 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Ami GONE FROM CHROMIUM
vrk: please review piman: FYI since you asked for this.
9 years, 4 months ago (2011-08-10 22:52:45 UTC) #1
vrk (LEFT CHROMIUM)
9 years, 4 months ago (2011-08-12 20:56:59 UTC) #2
LGTM

http://codereview.chromium.org/7461154/diff/1/content/common/gpu/media/omx_vi...
File content/common/gpu/media/omx_video_decode_accelerator_unittest.cc (right):

http://codereview.chromium.org/7461154/diff/1/content/common/gpu/media/omx_vi...
content/common/gpu/media/omx_video_decode_accelerator_unittest.cc:778: // -
Number of concurrent in-flight Decode() calls per decoder.
nit: order of params is wrong (should be 3rd param)

Powered by Google App Engine
This is Rietveld 408576698