diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-21 14:08:00 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-04 20:02:59 +0100 |
commit | d185071acf6e14bc2dea064748267a1422feb574 (patch) | |
tree | 7b281db0587a80d6753a42a8a67636efd8c423a5 | |
parent | e517e70eb1f29eee8bd28e90fcce89cb772cf242 (diff) | |
download | UXP-d185071acf6e14bc2dea064748267a1422feb574.tar UXP-d185071acf6e14bc2dea064748267a1422feb574.tar.gz UXP-d185071acf6e14bc2dea064748267a1422feb574.tar.lz UXP-d185071acf6e14bc2dea064748267a1422feb574.tar.xz UXP-d185071acf6e14bc2dea064748267a1422feb574.zip |
Unrefactor mRawVeggies back to mVBuffMeat ;P
(mRawSurface -> mVBuf)
-rw-r--r-- | image/imgFrame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/image/imgFrame.cpp b/image/imgFrame.cpp index af84d8cbb..c9f44181d 100644 --- a/image/imgFrame.cpp +++ b/image/imgFrame.cpp @@ -252,13 +252,13 @@ imgFrame::InitForDecoder(const nsIntSize& aImageSize, } else { MOZ_ASSERT(!mImageSurface, "Called imgFrame::InitForDecoder() twice?"); - mRawSurface = AllocateBufferForImage(mFrameRect.Size(), mFormat); - if (!mRawSurface) { + mVBuf = AllocateBufferForImage(mFrameRect.Size(), mFormat); + if (!mVBuf) { mAborted = true; return NS_ERROR_OUT_OF_MEMORY; } - mImageSurface = CreateLockedSurface(mRawSurface, mFrameRect.Size(), mFormat); + mImageSurface = CreateLockedSurface(mVBuf, mFrameRect.Size(), mFormat); if (!mImageSurface) { NS_WARNING("Failed to create ImageSurface"); @@ -266,7 +266,7 @@ imgFrame::InitForDecoder(const nsIntSize& aImageSize, return NS_ERROR_OUT_OF_MEMORY; } - if (!ClearSurface(mRawSurface, mFrameRect.Size(), mFormat)) { + if (!ClearSurface(mVBuf, mFrameRect.Size(), mFormat)) { NS_WARNING("Could not clear allocated buffer"); mAborted = true; return NS_ERROR_OUT_OF_MEMORY; |