Index: gm/megalooper.cpp |
diff --git a/gm/megalooper.cpp b/gm/megalooper.cpp |
index 5fe9af298b0d751eb7966b7ec9f3067ab12490a5..6f5640272fc068de9f84b80341c69c3c8c77b7c3 100644 |
--- a/gm/megalooper.cpp |
+++ b/gm/megalooper.cpp |
@@ -175,8 +175,7 @@ private: |
paint->setMaskFilter(this->createBlur())->unref(); |
- SkColorFilter* cf = SkColorFilter::CreateModeFilter(color, SkXfermode::kSrcIn_Mode); |
- paint->setColorFilter(cf)->unref(); |
+ paint->setColorFilter(SkColorFilter::MakeModeFilter(color, SkXfermode::kSrcIn_Mode)); |
return looperBuilder.detach(); |
} |
@@ -222,8 +221,8 @@ private: |
paint->setMaskFilter(this->createBlur())->unref(); |
- SkColorFilter* cf = SkColorFilter::CreateModeFilter(gColors[i], SkXfermode::kSrcIn_Mode); |
- paint->setColorFilter(cf)->unref(); |
+ paint->setColorFilter(SkColorFilter::MakeModeFilter(gColors[i], |
+ SkXfermode::kSrcIn_Mode)); |
} |
return looperBuilder.detach(); |