Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: src/animator/SkPaintPart.h

Issue 1933393002: Move SkTypeface to sk_sp. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make vc++ happy. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/animator/SkPaintPart.h
diff --git a/src/animator/SkPaintPart.h b/src/animator/SkPaintPart.h
index a7e28ed3e27c40aa9eccfac5d15341297bb00c08..1e35dce6e477e5883207b7cb116dcd2e33c2e656 100644
--- a/src/animator/SkPaintPart.h
+++ b/src/animator/SkPaintPart.h
@@ -63,7 +63,7 @@ class SkDrawTypeface : public SkPaintPart {
void dump(SkAnimateMaker *) override;
#endif
SkTypeface* getTypeface() {
- return SkTypeface::CreateFromName(fontName.c_str(), style); }
+ return SkTypeface::MakeFromName(fontName.c_str(), style).release(); }
protected:
bool add() override;
SkString fontName;

Powered by Google App Engine
This is Rietveld 408576698