Index: src/gpu/GrSWMaskHelper.cpp |
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp |
index 396d2bea9cf53625661823d76545488d06be1507..0e1fd3e61c899f1ad59997999a7537ed1c90aa8a 100644 |
--- a/src/gpu/GrSWMaskHelper.cpp |
+++ b/src/gpu/GrSWMaskHelper.cpp |
@@ -105,17 +105,13 @@ void GrSWMaskHelper::draw(const SkRect& rect, SkRegion::Op op, |
bool antiAlias, uint8_t alpha) { |
SkPaint paint; |
- SkXfermode* mode = SkXfermode::Create(op_to_mode(op)); |
- |
SkASSERT(kNone_CompressionMode == fCompressionMode); |
- paint.setXfermode(mode); |
+ paint.setXfermode(SkXfermode::Make(op_to_mode(op))); |
paint.setAntiAlias(antiAlias); |
paint.setColor(SkColorSetARGB(alpha, alpha, alpha, alpha)); |
fDraw.drawRect(rect, paint); |
- |
- SkSafeUnref(mode); |
} |
/** |