Reuse 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


Review URL: https://chromiumcodereview.appspot.com/11411053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168632 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed