summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-image_Downscaler.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/patches/patch-image_Downscaler.h')
-rw-r--r--www/firefox/patches/patch-image_Downscaler.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/www/firefox/patches/patch-image_Downscaler.h b/www/firefox/patches/patch-image_Downscaler.h
deleted file mode 100644
index d91b109cb8d..00000000000
--- a/www/firefox/patches/patch-image_Downscaler.h
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-image_Downscaler.h,v 1.1 2017/01/25 13:24:51 ryoon Exp $
-
---- image/Downscaler.h.orig 2016-10-31 20:15:32.000000000 +0000
-+++ 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