Index: include/core/SkFontStyle.h |
diff --git a/include/core/SkFontStyle.h b/include/core/SkFontStyle.h |
index f42d7dd4701824b6f15666bf875c839b41216092..c18f956e94ce5733dbf755e348c7a2e7900f5877 100644 |
--- a/include/core/SkFontStyle.h |
+++ b/include/core/SkFontStyle.h |
@@ -43,8 +43,8 @@ public: |
SkFontStyle(); |
SkFontStyle(int weight, int width, Slant); |
- /** oldStyle means the style-bits in SkTypeface::Style: bold=1, italic=2 */ |
- explicit SkFontStyle(unsigned oldStyle); |
+ |
+ static SkFontStyle FromOldStyle(unsigned oldStyle); |
bool operator==(const SkFontStyle& rhs) const { |
return fUnion.fU32 == rhs.fUnion.fU32; |