Index: gm/imagefiltersgraph.cpp |
diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp |
index 980398967ac69cf97545865e21e97455dc240e81..2d2772871034ad3e9b5b6a5f274031f2276a487f 100644 |
--- a/gm/imagefiltersgraph.cpp |
+++ b/gm/imagefiltersgraph.cpp |
@@ -69,9 +69,8 @@ protected: |
sk_sp<SkImageFilter> colorMorph(SkColorFilterImageFilter::Make(std::move(matrixFilter), |
std::move(morph))); |
SkPaint paint; |
- paint.setImageFilter(SkXfermodeImageFilter::Make( |
- SkXfermode::Make(SkXfermode::kSrcOver_Mode), |
- std::move(colorMorph))); |
+ paint.setImageFilter(SkXfermodeImageFilter::Make(SkBlendMode::kSrcOver, |
+ std::move(colorMorph))); |
DrawClippedImage(canvas, fImage.get(), paint); |
canvas->translate(SkIntToScalar(100), 0); |
@@ -105,9 +104,8 @@ protected: |
SkImageFilter::CropRect cropRect(SkRect::MakeWH(SkIntToScalar(95), SkIntToScalar(100))); |
SkPaint paint; |
paint.setImageFilter( |
- SkXfermodeImageFilter::Make(SkXfermode::Make(SkXfermode::kSrcIn_Mode), |
- std::move(blur), |
- nullptr, &cropRect)); |
+ SkXfermodeImageFilter::Make(SkBlendMode::kSrcIn, std::move(blur), nullptr, |
+ &cropRect)); |
DrawClippedImage(canvas, fImage.get(), paint); |
canvas->translate(SkIntToScalar(100), 0); |
} |