aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkMorphologyImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-02 14:24:22 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-02 14:24:22 +0000
commit4e3875348b2cc33f40cd86442d4d1a29b25dcf93 (patch)
tree4c07fbac60340cd2fe66a960e910e66d6b2c8657 /src/effects/SkMorphologyImageFilter.cpp
parent8d25eb138a8ddaadd3fc5c7dbf39e1440e34254f (diff)
When processing a morphology filter on the GPU, pass the processed texture,
not the original source texture. Review URL: https://codereview.appspot.com/6587057/ git-svn-id: http://skia.googlecode.com/svn/trunk@5766 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkMorphologyImageFilter.cpp')
-rw-r--r--src/effects/SkMorphologyImageFilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index b1ee602b25..1d834178a2 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -480,12 +480,12 @@ GrTexture* apply_morphology(GrTexture* srcTexture,
GrTexture* SkDilateImageFilter::onFilterImageGPU(Proxy* proxy, GrTexture* src, const SkRect& rect) {
SkAutoTUnref<GrTexture> input(this->getInputResultAsTexture(proxy, src, rect));
- return apply_morphology(src, rect, GrMorphologyEffect::kDilate_MorphologyType, radius());
+ return apply_morphology(input, rect, GrMorphologyEffect::kDilate_MorphologyType, radius());
}
GrTexture* SkErodeImageFilter::onFilterImageGPU(Proxy* proxy, GrTexture* src, const SkRect& rect) {
SkAutoTUnref<GrTexture> input(this->getInputResultAsTexture(proxy, src, rect));
- return apply_morphology(src, rect, GrMorphologyEffect::kErode_MorphologyType, radius());
+ return apply_morphology(input, rect, GrMorphologyEffect::kErode_MorphologyType, radius());
}
#endif