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