"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/gfx/skia/patches/archive/0002-Bug-688366-Dont-invalidate-all-radial-gradients.patch" (17 Sep 2019, 1150 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From f310d7e8b8d9cf6870c739650324bb585b591c0c Mon Sep 17 00:00:00 2001
    2 From: George Wright <gwright@mozilla.com>
    3 Date: Fri, 18 May 2012 14:11:32 -0400
    4 Subject: [PATCH 02/10]     Bug 755869 - [5] Re-apply bug 688366 - Fix Skia
    5  marking radial gradients with the same radius as
    6  invalid. r=mattwoodrow
    7 
    8 ---
    9  gfx/skia/src/effects/SkGradientShader.cpp |    5 ++++-
   10  1 files changed, 4 insertions(+), 1 deletions(-)
   11 
   12 diff --git a/gfx/skia/src/effects/SkGradientShader.cpp b/gfx/skia/src/effects/SkGradientShader.cpp
   13 index 6de820b..59ba48c 100644
   14 --- a/gfx/skia/src/effects/SkGradientShader.cpp
   15 +++ b/gfx/skia/src/effects/SkGradientShader.cpp
   16 @@ -1911,7 +1911,10 @@ public:
   17          SkPMColor* SK_RESTRICT dstC = dstCParam;
   18  
   19          // Zero difference between radii:  fill with transparent black.
   20 -        if (fDiffRadius == 0) {
   21 +        // TODO: Is removing this actually correct? Two circles with the 
   22 +        // same radius, but different centers doesn't sound like it
   23 +        // should be cleared
   24 +        if (fDiffRadius == 0 && fCenter1 == fCenter2) {
   25            sk_bzero(dstC, count * sizeof(*dstC));
   26            return;
   27          }
   28 -- 
   29 1.7.5.4
   30