Index: bench/RectBench.cpp |
diff --git a/bench/RectBench.cpp b/bench/RectBench.cpp |
index edd5ac7de21d9476d1e67156f8bbcd23b4cb3518..46a515de299705f5c7ce77222057929aee28e5bc 100644 |
--- a/bench/RectBench.cpp |
+++ b/bench/RectBench.cpp |
@@ -85,11 +85,7 @@ private: |
class SrcModeRectBench : public RectBench { |
public: |
SrcModeRectBench() : INHERITED(1, 0) { |
- fMode = SkXfermode::Create(SkXfermode::kSrc_Mode); |
- } |
- |
- virtual ~SrcModeRectBench() { |
- SkSafeUnref(fMode); |
+ fMode = SkXfermode::Make(SkXfermode::kSrc_Mode); |
} |
protected: |
@@ -108,7 +104,7 @@ protected: |
private: |
SkString fName; |
- SkXfermode* fMode; |
+ sk_sp<SkXfermode> fMode; |
typedef RectBench INHERITED; |
}; |