Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: src/effects/SkMorphologyImageFilter.cpp

Issue 50813002: Fix bug in erosion filtering (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added suppression Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkMorphologyImageFilter.cpp
===================================================================
--- src/effects/SkMorphologyImageFilter.cpp (revision 11994)
+++ src/effects/SkMorphologyImageFilter.cpp (working copy)
@@ -507,7 +507,9 @@
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;
}
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698