gfx/skia/patches/archive/0002-Bug-688366-Dont-invalidate-all-radial-gradients.patch

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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
     8 ---
     9  gfx/skia/src/effects/SkGradientShader.cpp |    5 ++++-
    10  1 files changed, 4 insertions(+), 1 deletions(-)
    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;
    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

mercurial