diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-21 13:34:01 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-04 20:02:29 +0100 |
commit | 0a6db54d86604e3b932f0ddd304e6df8e5961d98 (patch) | |
tree | 8f47b37f266fd6b4e0755230db8080ecac62a0d8 /image/decoders/nsBMPDecoder.cpp | |
parent | c5d5a28f76524886f185ba50b230e8ce0d08eacb (diff) | |
download | UXP-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/nsBMPDecoder.cpp')
-rw-r--r-- | image/decoders/nsBMPDecoder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/image/decoders/nsBMPDecoder.cpp b/image/decoders/nsBMPDecoder.cpp index 1f0449e4e..42bb3486a 100644 --- a/image/decoders/nsBMPDecoder.cpp +++ b/image/decoders/nsBMPDecoder.cpp @@ -674,8 +674,7 @@ nsBMPDecoder::ReadBitfields(const char* aData, size_t aLength) } MOZ_ASSERT(!mImageData, "Already have a buffer allocated?"); - nsresult rv = AllocateFrame(/* aFrameNum = */ 0, OutputSize(), - FullOutputFrame(), + nsresult rv = AllocateFrame(OutputSize(), FullOutputFrame(), mMayHaveTransparency ? SurfaceFormat::B8G8R8A8 : SurfaceFormat::B8G8R8X8); if (NS_FAILED(rv)) { |