summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsWebPDecoder.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-21 13:34:01 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-11-21 13:34:01 +0100
commit3417e581ce76662131e8089de19b05af20a7fe19 (patch)
tree82022858bd64d6ca4b1023d0317355b621d8b0aa /image/decoders/nsWebPDecoder.cpp
parent622098073e132995994fac4d61e3629d08ee1801 (diff)
downloadUXP-3417e581ce76662131e8089de19b05af20a7fe19.tar
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.gz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.lz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.xz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.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/nsWebPDecoder.cpp')
-rw-r--r--image/decoders/nsWebPDecoder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/image/decoders/nsWebPDecoder.cpp b/image/decoders/nsWebPDecoder.cpp
index 4d6566486..4f3cc8b2a 100644
--- a/image/decoders/nsWebPDecoder.cpp
+++ b/image/decoders/nsWebPDecoder.cpp
@@ -234,8 +234,12 @@ nsWebPDecoder::CreateFrame(const nsIntRect& aFrameRect)
SurfacePipeFlags pipeFlags = SurfacePipeFlags();
+ AnimationParams animParams {
+ aFrameRect, mTimeout, mCurrentFrame, mBlend, mDisposal
+ };
+
Maybe<SurfacePipe> pipe = SurfacePipeFactory::CreateSurfacePipe(this,
- mCurrentFrame, Size(), OutputSize(), aFrameRect, mFormat, pipeFlags);
+ Size(), OutputSize(), aFrameRect, mFormat, Some(animParams), pipeFlags);
if (!pipe) {
MOZ_LOG(sWebPLog, LogLevel::Error,
("[this=%p] nsWebPDecoder::CreateFrame -- no pipe\n", this));