mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods.
Extend this change to nsWebPDecoder.cpp
This commit is contained in:
parent
a08160ac44
commit
7937138cb0
6 changed files with 49 additions and 33 deletions
|
|
@ -388,8 +388,8 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
|
|||
jpeg_has_multiple_scans(&mInfo);
|
||||
|
||||
MOZ_ASSERT(!mImageData, "Already have a buffer allocated?");
|
||||
nsresult rv = AllocateFrame(/* aFrameNum = */ 0, OutputSize(),
|
||||
FullOutputFrame(), SurfaceFormat::B8G8R8X8);
|
||||
nsresult rv = AllocateFrame(OutputSize(), FullOutputFrame(),
|
||||
SurfaceFormat::B8G8R8X8);
|
||||
if (NS_FAILED(rv)) {
|
||||
mState = JPEG_ERROR;
|
||||
MOZ_LOG(sJPEGDecoderAccountingLog, LogLevel::Debug,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue