Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 19bdcaf0aa97ccd199d86f820b682ec050f8d91f..6fe9d7599d30a7342fe0f3b93301453842f46eb3 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -375,7 +375,9 @@ |
#endif |
SET_PTR(ImageFilter) |
SET_PTR(Shader) |
+#ifdef SK_SUPPORT_LEGACY_COLORFILTER_PTR |
SET_PTR(ColorFilter) |
+#endif |
SET_PTR(Xfermode) |
#ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR |
SET_PTR(PathEffect) |
@@ -1940,7 +1942,7 @@ |
this->setShader(buffer.readShader()); |
SkSafeUnref(this->setXfermode(buffer.readXfermode())); |
SkSafeUnref(this->setMaskFilter(buffer.readMaskFilter())); |
- SkSafeUnref(this->setColorFilter(buffer.readColorFilter())); |
+ this->setColorFilter(buffer.readColorFilter()); |
this->setRasterizer(buffer.readRasterizer()); |
this->setLooper(buffer.readDrawLooper()); |
SkSafeUnref(this->setImageFilter(buffer.readImageFilter())); |