DescriptionReuse PPB_Buffer_Impl in ContentDecryptorDelegate.
PPB_Buffer_Impl wraps shared memory which is expensive to allocate. Allocating shared memory involved an sync IPC to to browser. To reduce the latency caused by this, reuse PPB_Buffer_Impl in ContentDecryptorDelegate for audio and video streams.
Test on Linux (Ubuntu 10.04) shows that this change reduces the time to MakeBufferResource() from 0.543ms to 0.040 ms per frame. The difference can be larger on slower platforms.
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168632
Patch Set 1 #
Total comments: 18
Patch Set 2 : resolve ddorwin's comments #
Total comments: 2
Patch Set 3 : nit #
Messages
Total messages: 9 (0 generated)
|