Index: src/utils/SkTextBox.cpp |
diff --git a/src/utils/SkTextBox.cpp b/src/utils/SkTextBox.cpp |
index d237f4513c4b998da23dd73530319eee141a23d7..bc2e2217d95403711d232a09779f97afa7824fdc 100644 |
--- a/src/utils/SkTextBox.cpp |
+++ b/src/utils/SkTextBox.cpp |
@@ -292,11 +292,11 @@ public: |
} |
}; |
-SkTextBlob* SkTextBox::snapshotTextBlob(SkScalar* computedBottom) const { |
+sk_sp<SkTextBlob> SkTextBox::snapshotTextBlob(SkScalar* computedBottom) const { |
TextBlobVisitor visitor; |
SkScalar newB = this->visit(visitor, fText, fLen, *fPaint); |
if (computedBottom) { |
*computedBottom = newB; |
} |
- return (SkTextBlob*)visitor.fBuilder.build(); |
+ return visitor.fBuilder.make(); |
} |