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

Unified Diff: include/ports/SkFontConfigInterface.h

Issue 1933393002: Move SkTypeface to sk_sp. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments. 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: include/ports/SkFontConfigInterface.h
diff --git a/include/ports/SkFontConfigInterface.h b/include/ports/SkFontConfigInterface.h
index 3c68a242e54f0a270fbae89d4b715dec59086b7b..ad25f06415e9708bb466d563c9f7219bfc0d3201 100644
--- a/include/ports/SkFontConfigInterface.h
+++ b/include/ports/SkFontConfigInterface.h
@@ -102,7 +102,7 @@ public:
* Callers are responsible for unref-ing the result.
*/
virtual SkTypeface* createTypeface(const FontIdentity& identity) {
reed1 2016/05/01 18:53:52 Future plan to upgrade this API?
tomhudson 2016/05/02 12:26:08 D'oh, yes, sloppy of me to miss this.
bungeman-skia 2016/05/02 20:24:54 Done.
- return SkTypeface::CreateFromStream(this->openStream(identity), identity.fTTCIndex);
+ return SkTypeface::MakeFromStream(this->openStream(identity), identity.fTTCIndex).release();
}
/**

Powered by Google App Engine
This is Rietveld 408576698