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

Unified Diff: src/core/SkFontDescriptor.h

Issue 2030683002: Update typeface serialization style. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkFontDescriptor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFontDescriptor.h
diff --git a/src/core/SkFontDescriptor.h b/src/core/SkFontDescriptor.h
index 9b87365ed5b3fb1eeaa5cb116c70a9083aa31f92..cb8d2f4f03562484755e4147ca7b3fd85e4adfab 100644
--- a/src/core/SkFontDescriptor.h
+++ b/src/core/SkFontDescriptor.h
@@ -50,14 +50,14 @@ private:
class SkFontDescriptor : SkNoncopyable {
public:
- SkFontDescriptor(SkTypeface::Style = SkTypeface::kNormal);
+ SkFontDescriptor();
// Does not affect ownership of SkStream.
static bool Deserialize(SkStream*, SkFontDescriptor* result);
void serialize(SkWStream*);
- SkTypeface::Style getStyle() { return fStyle; }
- void setStyle(SkTypeface::Style style) { fStyle = style; }
+ SkFontStyle getStyle() { return fStyle; }
+ void setStyle(SkFontStyle style) { fStyle = style; }
const char* getFamilyName() const { return fFamilyName.c_str(); }
const char* getFullName() const { return fFullName.c_str(); }
@@ -78,7 +78,7 @@ private:
SkString fPostscriptName;
SkAutoTDelete<SkFontData> fFontData;
- SkTypeface::Style fStyle;
+ SkFontStyle fStyle;
};
#endif // SkFontDescriptor_DEFINED
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkFontDescriptor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698