aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkShadowMaskFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkShadowMaskFilter.cpp')
-rwxr-xr-xsrc/effects/SkShadowMaskFilter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/SkShadowMaskFilter.cpp b/src/effects/SkShadowMaskFilter.cpp
index 5c54072f4e..958ab170a7 100755
--- a/src/effects/SkShadowMaskFilter.cpp
+++ b/src/effects/SkShadowMaskFilter.cpp
@@ -252,6 +252,7 @@ bool SkShadowMaskFilterImpl::directFilterRRectMaskGPU(GrContext*,
const SkScalar devSpaceAmbientRadius = srcSpaceAmbientRadius * scaleFactor;
GrPaint newPaint(*grp);
+ newPaint.setAntiAlias(true);
GrColor4f color = newPaint.getColor4f();
color.fRGBA[3] *= fAmbientAlpha;
newPaint.setColor4f(color);
@@ -310,6 +311,7 @@ bool SkShadowMaskFilterImpl::directFilterRRectMaskGPU(GrContext*,
(spotShadowRRect.width() + srcSpaceSpotRadius);
GrPaint newPaint(*grp);
+ newPaint.setAntiAlias(true);
GrColor4f color = newPaint.getColor4f();
color.fRGBA[3] *= fSpotAlpha;
newPaint.setColor4f(color);