Initialize subrun variables to make Valgrind happy

The check at line 1259 was failing in Valgrind, and in
the default constructor subrun.fMaskFormat is never inited.
Also set some other variables to avoid future problems.

Review URL: https://codereview.chromium.org/1315773005
This commit is contained in:
jvanverth 2015-09-10 06:31:38 -07:00 committed by Commit bot
parent 32ab260ee1
commit ce79a3a744

View File

@ -77,7 +77,10 @@ struct GrAtlasTextBlob : public SkRefCnt {
, fVertexEndIndex(0) , fVertexEndIndex(0)
, fGlyphStartIndex(0) , fGlyphStartIndex(0)
, fGlyphEndIndex(0) , fGlyphEndIndex(0)
, fDrawAsDistanceFields(false) {} , fTextRatio(1.0f)
, fMaskFormat(kA8_GrMaskFormat)
, fDrawAsDistanceFields(false)
, fUseLCDText(false) {}
SubRunInfo(const SubRunInfo& that) SubRunInfo(const SubRunInfo& that)
: fBulkUseToken(that.fBulkUseToken) : fBulkUseToken(that.fBulkUseToken)
, fStrike(SkSafeRef(that.fStrike.get())) , fStrike(SkSafeRef(that.fStrike.get()))