summaryrefslogtreecommitdiffstats
path: root/image/SurfacePipe.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-21 12:57:17 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-04 20:02:14 +0100
commitc5d5a28f76524886f185ba50b230e8ce0d08eacb (patch)
treeaadacb3626783986111afec138fc86a7d10a8b38 /image/SurfacePipe.h
parenta0e20005efe7a794f9a824693e13f8874e087445 (diff)
downloadUXP-c5d5a28f76524886f185ba50b230e8ce0d08eacb.tar
UXP-c5d5a28f76524886f185ba50b230e8ce0d08eacb.tar.gz
UXP-c5d5a28f76524886f185ba50b230e8ce0d08eacb.tar.lz
UXP-c5d5a28f76524886f185ba50b230e8ce0d08eacb.tar.xz
UXP-c5d5a28f76524886f185ba50b230e8ce0d08eacb.zip
Bug 1462355 - Part 1b. Update Decoder and SurfacePipe plumbing to use updated imgFrame methods.
Diffstat (limited to 'image/SurfacePipe.h')
-rw-r--r--image/SurfacePipe.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/image/SurfacePipe.h b/image/SurfacePipe.h
index f046afa56..61c8d30df 100644
--- a/image/SurfacePipe.h
+++ b/image/SurfacePipe.h
@@ -34,6 +34,8 @@
#include "mozilla/Variant.h"
#include "mozilla/gfx/2D.h"
+#include "AnimationParams.h"
+
namespace mozilla {
namespace image {
@@ -722,10 +724,10 @@ struct SurfaceConfig
{
using Filter = SurfaceSink;
Decoder* mDecoder; /// Which Decoder to use to allocate the surface.
- uint32_t mFrameNum; /// Which frame of animation this surface is for.
gfx::IntSize mOutputSize; /// The size of the surface.
gfx::SurfaceFormat mFormat; /// The surface format (BGRA or BGRX).
bool mFlipVertically; /// If true, write the rows from bottom to top.
+ Maybe<AnimationParams> mAnimParams; /// Given for animated images.
};
/**
@@ -750,12 +752,12 @@ struct PalettedSurfaceConfig
{
using Filter = PalettedSurfaceSink;
Decoder* mDecoder; /// Which Decoder to use to allocate the surface.
- uint32_t mFrameNum; /// Which frame of animation this surface is for.
gfx::IntSize mOutputSize; /// The logical size of the surface.
gfx::IntRect mFrameRect; /// The surface subrect which contains data.
gfx::SurfaceFormat mFormat; /// The surface format (BGRA or BGRX).
uint8_t mPaletteDepth; /// The palette depth of this surface.
bool mFlipVertically; /// If true, write the rows from bottom to top.
+ Maybe<AnimationParams> mAnimParams; /// Given for animated images.
};
/**