aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-29 13:59:31 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-29 13:59:31 +0000
commit0b7ab3bb49015c5316627d6893955596c59342b8 (patch)
tree0ef997e25c45e00e3f36320c0d22c43058955720 /src/effects
parentbc0dbdc1691a1c094fd0e60ea20d961972c06a86 (diff)
Fix bug in erosion filtering
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkMorphologyImageFilter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index 08e0ab21b6..df015cac73 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -507,7 +507,9 @@ bool apply_morphology(const SkBitmap& input,
morphType, Gr1DKernelEffect::kX_Direction);
SkIRect clearRect = SkIRect::MakeXYWH(dstRect.fLeft, dstRect.fBottom,
dstRect.width(), radius.fHeight);
- context->clear(&clearRect, 0x0);
+ context->clear(&clearRect, GrMorphologyEffect::kErode_MorphologyType == morphType ?
+ SK_ColorWHITE :
+ SK_ColorTRANSPARENT);
src.reset(ast.detach());
srcRect = dstRect;
}