Index: src/core/SkTextBlob.cpp |
diff --git a/src/core/SkTextBlob.cpp b/src/core/SkTextBlob.cpp |
index 1cbb2b6d6dabc9750c620b98cd1c8ec64c5adc84..463312aa6de00b364d64c1b16712760cea38f08d 100644 |
--- a/src/core/SkTextBlob.cpp |
+++ b/src/core/SkTextBlob.cpp |
@@ -27,7 +27,7 @@ |
void applyToPaint(SkPaint* paint) const { |
paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); |
- paint->setTypeface(fTypeface); |
+ paint->setTypeface(fTypeface.get()); |
paint->setTextSize(fSize); |
paint->setTextScaleX(fScaleX); |
paint->setTextSkewX(fSkewX); |
@@ -73,7 +73,7 @@ |
// Keep this SkAutoTUnref off the first position, to avoid interfering with SkNoncopyable |
// empty baseclass optimization (http://code.google.com/p/skia/issues/detail?id=3694). |
- sk_sp<SkTypeface> fTypeface; |
+ SkAutoTUnref<SkTypeface> fTypeface; |
SkScalar fSkewX; |
static_assert(SkPaint::kAlignCount < 4, "insufficient_align_bits"); |