gfx/skia/patches/archive/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 diff --git a/gfx/skia/src/effects/SkGradientShader.cpp b/gfx/skia/src/effects/SkGradientShader.cpp
     2 --- a/gfx/skia/src/effects/SkGradientShader.cpp
     3 +++ b/gfx/skia/src/effects/SkGradientShader.cpp
     4 @@ -1665,17 +1665,20 @@ public:
     5          }
     6          return kRadial2_GradientType;
     7      }
     9      virtual void shadeSpan(int x, int y, SkPMColor* SK_RESTRICT dstC, int count) SK_OVERRIDE {
    10          SkASSERT(count > 0);
    12          // Zero difference between radii:  fill with transparent black.
    13 -        if (fDiffRadius == 0) {
    14 +        // TODO: Is removing this actually correct? Two circles with the 
    15 +        // same radius, but different centers doesn't sound like it
    16 +        // should be cleared
    17 +        if (fDiffRadius == 0 && fCenter1 == fCenter2) {
    18            sk_bzero(dstC, count * sizeof(*dstC));
    19            return;
    20          }
    21          SkMatrix::MapXYProc dstProc = fDstToIndexProc;
    22          TileProc            proc = fTileProc;
    23          const SkPMColor* SK_RESTRICT cache = this->getCache32();
    25          SkScalar foura = fA * 4;

mercurial