mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
|
diff --git a/gfx/skia/src/effects/SkGradientShader.cpp b/gfx/skia/src/effects/SkGradientShader.cpp
|
||
|
--- a/gfx/skia/src/effects/SkGradientShader.cpp
|
||
|
+++ b/gfx/skia/src/effects/SkGradientShader.cpp
|
||
|
@@ -1652,17 +1652,20 @@ public:
|
||
|
}
|
||
|
return kRadial2_GradientType;
|
||
|
}
|
||
|
|
||
|
virtual void shadeSpan(int x, int y, SkPMColor* SK_RESTRICT dstC, int count) {
|
||
|
SkASSERT(count > 0);
|
||
|
|
||
|
// Zero difference between radii: fill with transparent black.
|
||
|
- if (fDiffRadius == 0) {
|
||
|
+ // TODO: Is removing this actually correct? Two circles with the
|
||
|
+ // same radius, but different centers doesn't sound like it
|
||
|
+ // should be cleared
|
||
|
+ if (fDiffRadius == 0 && fCenter1 == fCenter2) {
|
||
|
sk_bzero(dstC, count * sizeof(*dstC));
|
||
|
return;
|
||
|
}
|
||
|
SkMatrix::MapXYProc dstProc = fDstToIndexProc;
|
||
|
TileProc proc = fTileProc;
|
||
|
const SkPMColor* SK_RESTRICT cache = this->getCache32();
|
||
|
|
||
|
SkScalar foura = fA * 4;
|