Index: src/core/SkMaskFilter.cpp |
=================================================================== |
--- src/core/SkMaskFilter.cpp (revision 12666) |
+++ src/core/SkMaskFilter.cpp (working copy) |
@@ -349,14 +349,10 @@ |
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; |
} |