Index: gm/xfermodes2.cpp |
diff --git a/gm/xfermodes2.cpp b/gm/xfermodes2.cpp |
index 6f7d05475cca76fcd3a7319effaa3fa8cfd9a8bc..03da0d33173058366f1d3da1488691c6816342ba 100644 |
--- a/gm/xfermodes2.cpp |
+++ b/gm/xfermodes2.cpp |
@@ -40,7 +40,7 @@ protected: |
SkScalar x = 0, y = 0; |
for (size_t m = 0; m <= SkXfermode::kLastMode; m++) { |
- SkXfermode::Mode mode = static_cast<SkXfermode::Mode>(m); |
+ SkBlendMode mode = static_cast<SkBlendMode>(m); |
canvas->save(); |
@@ -57,7 +57,7 @@ protected: |
p.setShader(fDst); |
canvas->drawRect(r, p); |
p.setShader(fSrc); |
- p.setXfermode(SkXfermode::Make(mode)); |
+ p.setBlendMode(mode); |
canvas->drawRect(r, p); |
canvas->restore(); |
@@ -65,7 +65,7 @@ protected: |
r.inset(-SK_ScalarHalf, -SK_ScalarHalf); |
p.setStyle(SkPaint::kStroke_Style); |
p.setShader(nullptr); |
- p.setXfermode(nullptr); |
+ p.setBlendMode(SkBlendMode::kSrcOver); |
canvas->drawRect(r, p); |
canvas->restore(); |