Index: src/fonts/SkRandomScalerContext.h |
diff --git a/src/fonts/SkRandomScalerContext.h b/src/fonts/SkRandomScalerContext.h |
index 076689d93a4240261cfd0f1f8b033c3a86e692bb..0e08f4b1ae7e08aea3f7b9339e8a4f7163f1e776 100644 |
--- a/src/fonts/SkRandomScalerContext.h |
+++ b/src/fonts/SkRandomScalerContext.h |
@@ -18,9 +18,10 @@ |
class SkRandomTypeface : public SkTypeface { |
public: |
- SkRandomTypeface(sk_sp<SkTypeface> proxy, const SkPaint&, bool fakeit); |
+ SkRandomTypeface(SkTypeface* proxy, const SkPaint&, bool fakeit); |
+ virtual ~SkRandomTypeface(); |
- SkTypeface* proxy() const { return fProxy.get(); } |
+ SkTypeface* proxy() const { return fProxy; } |
const SkPaint& paint() const { return fPaint; } |
protected: |
@@ -47,9 +48,9 @@ |
size_t length, void* data) const override; |
private: |
- sk_sp<SkTypeface> fProxy; |
- SkPaint fPaint; |
- bool fFakeIt; |
+ SkTypeface* fProxy; |
+ SkPaint fPaint; |
+ bool fFakeIt; |
}; |
#endif |