Index: src/fonts/SkGScalerContext.h |
diff --git a/src/fonts/SkGScalerContext.h b/src/fonts/SkGScalerContext.h |
index 3eb25a81da1c3416d9438c39a119447801618147..69d02ddf114132197be16d1841459502d58c45b1 100644 |
--- a/src/fonts/SkGScalerContext.h |
+++ b/src/fonts/SkGScalerContext.h |
@@ -13,9 +13,10 @@ |
class SkGTypeface : public SkTypeface { |
public: |
- SkGTypeface(sk_sp<SkTypeface> proxy, const SkPaint&); |
+ SkGTypeface(SkTypeface* proxy, const SkPaint&); |
+ virtual ~SkGTypeface(); |
- SkTypeface* proxy() const { return fProxy.get(); } |
+ SkTypeface* proxy() const { return fProxy; } |
const SkPaint& paint() const { return fPaint; } |
protected: |
@@ -42,8 +43,8 @@ |
size_t length, void* data) const override; |
private: |
- sk_sp<SkTypeface> fProxy; |
- SkPaint fPaint; |
+ SkTypeface* fProxy; |
+ SkPaint fPaint; |
}; |
#endif |