summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsJPEGDecoder.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-21 13:34:01 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-04 20:02:29 +0100
commit0a6db54d86604e3b932f0ddd304e6df8e5961d98 (patch)
tree8f47b37f266fd6b4e0755230db8080ecac62a0d8 /image/decoders/nsJPEGDecoder.cpp
parentc5d5a28f76524886f185ba50b230e8ce0d08eacb (diff)
downloadUXP-0a6db54d86604e3b932f0ddd304e6df8e5961d98.tar
UXP-0a6db54d86604e3b932f0ddd304e6df8e5961d98.tar.gz
UXP-0a6db54d86604e3b932f0ddd304e6df8e5961d98.tar.lz
UXP-0a6db54d86604e3b932f0ddd304e6df8e5961d98.tar.xz
UXP-0a6db54d86604e3b932f0ddd304e6df8e5961d98.zip
Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods.
Extend this change to nsWebPDecoder.cpp
Diffstat (limited to 'image/decoders/nsJPEGDecoder.cpp')
-rw-r--r--image/decoders/nsJPEGDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/decoders/nsJPEGDecoder.cpp b/image/decoders/nsJPEGDecoder.cpp
index e76ffcbaf..7dac18e27 100644
--- a/image/decoders/nsJPEGDecoder.cpp
+++ b/image/decoders/nsJPEGDecoder.cpp
@@ -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,