summaryrefslogtreecommitdiff
path: root/mail/thunderbird/patches/patch-mozilla_image_Downscaler.h
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird/patches/patch-mozilla_image_Downscaler.h')
-rw-r--r--mail/thunderbird/patches/patch-mozilla_image_Downscaler.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/mail/thunderbird/patches/patch-mozilla_image_Downscaler.h b/mail/thunderbird/patches/patch-mozilla_image_Downscaler.h
new file mode 100644
index 00000000000..12234f20efb
--- /dev/null
+++ b/mail/thunderbird/patches/patch-mozilla_image_Downscaler.h
@@ -0,0 +1,33 @@
+$NetBSD: patch-mozilla_image_Downscaler.h,v 1.1 2017/04/27 13:32:40 ryoon Exp $
+
+--- mozilla/image/Downscaler.h.orig 2017-04-14 04:53:09.000000000 +0000
++++ mozilla/image/Downscaler.h
+@@ -154,14 +154,14 @@ private:
+ class Downscaler
+ {
+ public:
+- explicit Downscaler(const nsIntSize&)
++ explicit Downscaler(const nsIntSize&) : mScale(1.0, 1.0)
+ {
+ MOZ_RELEASE_ASSERT(false, "Skia is not enabled");
+ }
+
+- const nsIntSize& OriginalSize() const { return nsIntSize(); }
+- const nsIntSize& TargetSize() const { return nsIntSize(); }
+- const gfxSize& Scale() const { return gfxSize(1.0, 1.0); }
++ const nsIntSize& OriginalSize() const { return mSize; }
++ const nsIntSize& TargetSize() const { return mSize; }
++ const gfxSize& Scale() const { return mScale; }
+
+ nsresult BeginFrame(const nsIntSize&, const Maybe<nsIntRect>&, uint8_t*, bool, bool = false)
+ {
+@@ -177,6 +177,9 @@ public:
+ DownscalerInvalidRect TakeInvalidRect() { return DownscalerInvalidRect(); }
+ void ResetForNextProgressivePass() { }
+ const nsIntSize FrameSize() const { return nsIntSize(0, 0); }
++private:
++ nsIntSize mSize;
++ gfxSize mScale;
+ };
+
+ #endif // MOZ_ENABLE_SKIA