summaryrefslogtreecommitdiff
path: root/core/SkMaskFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/SkMaskFilter.cpp')
-rw-r--r--core/SkMaskFilter.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/SkMaskFilter.cpp b/core/SkMaskFilter.cpp
index adfed410..f062f135 100644
--- a/core/SkMaskFilter.cpp
+++ b/core/SkMaskFilter.cpp
@@ -349,14 +349,10 @@ bool SkMaskFilter::filterMaskGPU(GrContext* context,
if (!result) {
return false;
}
- SkAutoUnref aur(dst);
- SkImageInfo info;
resultBM->setConfig(srcBM.config(), dst->width(), dst->height());
- if (resultBM->asImageInfo(&info)) {
- return false;
- }
- resultBM->setPixelRef(SkNEW_ARGS(SkGrPixelRef, (info, dst)))->unref();
+ resultBM->setPixelRef(SkNEW_ARGS(SkGrPixelRef, (dst)))->unref();
+ dst->unref();
return true;
}