Chromium Code Reviews
DescriptionMake AVDA errors terminal; don't destruct until Decode() for Reset().
This expands our workaround for deferred ResetCodecState() to include
cases where we might destruct the codec since that can be slow. As
part of this fix, we also no longer let ResetCodecState() leave the
error state and only reconstruct a codec when there are no errors.
The latter change avoids codec destruction and recreation on all
platforms if we happen to hit an unlucky SurfaceView destruction
error.
On the whole this doesn't seem to matter much on my N7v1 running
4.3.0 (API 18). Total suspend resume cycle time goes from ~297ms
to ~287ms if I force codec destruction for this device.
BUG=tbd
TEST=timing.
Patch Set 1 #
Total comments: 5
Depends on Patchset: Messages
Total messages: 5 (1 generated)
|
|||||||||||||||||||