AVDA should lazily reinitialize MediaCodecs on JB |
||
Issue descriptionOn JB, AVDA::Reset() releases its MediaCodec and creates a new one. MediaCodec creation can take 100-200 ms so we should avoid doing it unless it's necessary. Suspends result in AVDA::Reset() followed by AVDA::Destroy() so there's no point in reinitializing the MediaCodec in this case. Removing it will speed up fullscreen transitions. The other unnecessary case is Reset at EOS.
,
Mar 30 2016
That's true, but I thought avoiding Flush() before suspend was more of a speculative task that we may not be able to do because it depends on us being able to cancel ffmpeg reads in a recoverable way. Doing this lazy reinitialize may actually hinder what Frank is doing, I'm not sure.
,
Mar 30 2016
CL is here https://codereview.chromium.org/1828033002/ We can leave it pending more investigation into not flushing for suspend.
,
Jun 27 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by dalecur...@chromium.org
, Mar 30 2016