Chromium Code Reviews
DescriptionMade Destroy() followup more aggressive to test for races.
In particular we now free output textures and input bitstream buffers as soon as
Destroy() returns, in an attempt to trip up race conditions between
OVDA::Destroy() returning and the openmax libs/drivers/hardware attempting to
use no-longer-valid memory.
Also made DestroyVideoDecoder a SYNChronous IPC message again to match VideoDecodeAccelerator::Destroy()'s contract.
Also explicitly set to NULL pointers that are made invalid or no-longer useful by Destroy(), in the pepper glue code, to make crashes more obvious if they happen.
[No crashes have been observed in gles2 or ovdatest; this CL is just to increase (currently manual) test coverage]
BUG=none
TEST=gles2 mid-decode reload works, ovdatest passes
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94148
Patch Set 1 : . #Patch Set 2 : . #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||