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

Unified Diff: src/core/SkAdvancedTypefaceMetrics.h

Issue 1221903004: SkAdvancedTypefaceMetrics zeroing constructor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkAdvancedTypefaceMetrics.h
diff --git a/src/core/SkAdvancedTypefaceMetrics.h b/src/core/SkAdvancedTypefaceMetrics.h
index 37434a3912d63095a5456e9827e3af29240b3fd2..44a6854bd5eda081ff7d09a7e5fd9cacf497af1c 100644
--- a/src/core/SkAdvancedTypefaceMetrics.h
+++ b/src/core/SkAdvancedTypefaceMetrics.h
@@ -25,7 +25,19 @@
class SkAdvancedTypefaceMetrics : public SkRefCnt {
public:
-
+
+ SkAdvancedTypefaceMetrics()
+ : fType(SkAdvancedTypefaceMetrics::kOther_Font)
+ , fFlags(SkAdvancedTypefaceMetrics::kEmpty_FontFlag)
+ , fLastGlyphID(0)
+ , fEmSize(0)
+ , fStyle(0)
+ , fItalicAngle(0)
+ , fAscent(0)
+ , fDescent(0)
+ , fStemV(0)
+ , fCapHeight(0)
+ , fBBox(SkIRect::MakeEmpty()) {}
SkString fFontName;
« no previous file with comments | « no previous file | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698