Bug 682615 - Use fallible new for BasicPlanarYCbCrImage. r=roc

This commit is contained in:
Matt Woodrow
2011-08-31 14:03:34 +12:00
parent a13fc8be2e
commit 06bbf5e218
2 changed files with 6 additions and 1 deletions

View File

@@ -452,6 +452,11 @@ public:
PRUint8 *CopyData(Data& aDest, gfxIntSize& aDestSize,
PRUint32& aDestBufferSize, const Data& aData);
/**
* Return a buffer to store image data in.
* The default implementation returns memory that can
* be freed wit delete[]
*/
virtual PRUint8* AllocateBuffer(PRUint32 aSize);
/**