DescriptionEncrypted Media: Fix PpbBuffer::Destroy().
This CL makes the ownership of the pp::Buffer_Dev clear:
1) If the PpbBuffer owns the pp::Buffer_Dev, it always calls
allocator_->Release() during the destructor so that the buffer is returned to
the allocator_ and can be reused.
2) If TakeBufferDev() is called. PpbBuffer doesn't own the pp::Buffer_Dev any
more. The caller of TakeBufferDev() needs to make sure allocator->Release() is
called sometime later to return the buffer to allocator_.
BUG=392497
TEST=Tested with random stream switch video.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282544
Patch Set 1 #
Total comments: 19
Patch Set 2 : comments addressed #
Total comments: 2
Patch Set 3 : comments addressed #
Messages
Total messages: 10 (0 generated)
|