Index: src/core/SkBlitter.cpp |
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp |
index 9fcab9c98225ec5ea18ccb1e8f8b40a0eb772fe7..04897e3828af4ec077ec27102e88b279437969a8 100644 |
--- a/src/core/SkBlitter.cpp |
+++ b/src/core/SkBlitter.cpp |
@@ -867,8 +867,8 @@ SkBlitter* SkBlitter::Choose(const SkPixmap& device, |
if (cf) { |
SkASSERT(shader); |
- shader = shader->newWithColorFilter(cf); |
- paint.writable()->setShader(shader)->unref(); |
+ paint.writable()->setShader(shader->makeWithColorFilter(cf)); |
+ shader = paint->getShader(); |
// blitters should ignore the presence/absence of a filter, since |
// if there is one, the shader will take care of it. |
} |