X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fsrc%2Fports%2FSkFontConfigTypeface.h;h=c7d8e26032b3b6baac0743edb283efc172f545ff;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=f62d99d2f45acf5ce85e7b591f6a3ed01cd7091d;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/src/ports/SkFontConfigTypeface.h b/src/third_party/skia/src/ports/SkFontConfigTypeface.h index f62d99d..c7d8e26 100644 --- a/src/third_party/skia/src/ports/SkFontConfigTypeface.h +++ b/src/third_party/skia/src/ports/SkFontConfigTypeface.h @@ -18,13 +18,14 @@ class FontConfigTypeface : public SkTypeface_FreeType { SkStream* fLocalStream; public: - static FontConfigTypeface* Create(Style style, + static FontConfigTypeface* Create(const SkFontStyle& style, const SkFontConfigInterface::FontIdentity& fi, const SkString& familyName) { return SkNEW_ARGS(FontConfigTypeface, (style, fi, familyName)); } - static FontConfigTypeface* Create(Style style, bool fixedWidth, SkStream* localStream) { + static FontConfigTypeface* Create(const SkFontStyle& style, bool fixedWidth, + SkStream* localStream) { return SkNEW_ARGS(FontConfigTypeface, (style, fixedWidth, localStream)); } @@ -50,7 +51,7 @@ public: protected: friend class SkFontHost; // hack until we can make public versions - FontConfigTypeface(Style style, + FontConfigTypeface(const SkFontStyle& style, const SkFontConfigInterface::FontIdentity& fi, const SkString& familyName) : INHERITED(style, SkTypefaceCache::NewFontID(), false) @@ -58,7 +59,7 @@ protected: , fFamilyName(familyName) , fLocalStream(NULL) {} - FontConfigTypeface(Style style, bool fixedWidth, SkStream* localStream) + FontConfigTypeface(const SkFontStyle& style, bool fixedWidth, SkStream* localStream) : INHERITED(style, SkTypefaceCache::NewFontID(), fixedWidth) { // we default to empty fFamilyName and fIdentity fLocalStream = localStream;