mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 23:37:31 +09:00
Unrefactor mRawVeggies back to mVBuffMeat ;P
(mRawSurface -> mVBuf)
This commit is contained in:
parent
d3b77513d5
commit
7a3a9214a5
1 changed files with 4 additions and 4 deletions
|
|
@ -252,13 +252,13 @@ imgFrame::InitForDecoder(const nsIntSize& aImageSize,
|
||||||
} else {
|
} else {
|
||||||
MOZ_ASSERT(!mImageSurface, "Called imgFrame::InitForDecoder() twice?");
|
MOZ_ASSERT(!mImageSurface, "Called imgFrame::InitForDecoder() twice?");
|
||||||
|
|
||||||
mRawSurface = AllocateBufferForImage(mFrameRect.Size(), mFormat);
|
mVBuf = AllocateBufferForImage(mFrameRect.Size(), mFormat);
|
||||||
if (!mRawSurface) {
|
if (!mVBuf) {
|
||||||
mAborted = true;
|
mAborted = true;
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
return NS_ERROR_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
mImageSurface = CreateLockedSurface(mRawSurface, mFrameRect.Size(), mFormat);
|
mImageSurface = CreateLockedSurface(mVBuf, mFrameRect.Size(), mFormat);
|
||||||
|
|
||||||
if (!mImageSurface) {
|
if (!mImageSurface) {
|
||||||
NS_WARNING("Failed to create ImageSurface");
|
NS_WARNING("Failed to create ImageSurface");
|
||||||
|
|
@ -266,7 +266,7 @@ imgFrame::InitForDecoder(const nsIntSize& aImageSize,
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
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");
|
NS_WARNING("Could not clear allocated buffer");
|
||||||
mAborted = true;
|
mAborted = true;
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
return NS_ERROR_OUT_OF_MEMORY;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue