Index: samplecode/SampleLayerMask.cpp |
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp |
index 5fce85c4b7d7675181ff41aa101870ea269cc148..f0c6a40dc28c32332fe1604e5537260c6b92debc 100644 |
--- a/samplecode/SampleLayerMask.cpp |
+++ b/samplecode/SampleLayerMask.cpp |
@@ -44,13 +44,13 @@ protected: |
bounds.offset(-bounds.fLeft, -bounds.fTop); |
c.drawOval(bounds, paint); |
- paint.setXfermodeMode(SkXfermode::kDstIn_Mode); |
+ paint.setBlendMode(SkBlendMode::kDstIn); |
canvas->drawBitmap(mask, r.fLeft, r.fTop, &paint); |
} else { |
SkPath p; |
p.addOval(r); |
p.setFillType(SkPath::kInverseWinding_FillType); |
- paint.setXfermodeMode(SkXfermode::kDstOut_Mode); |
+ paint.setBlendMode(SkBlendMode::kDstOut); |
canvas->drawPath(p, paint); |
} |
} |