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:
parent
32ab260ee1
commit
ce79a3a744
@ -77,7 +77,10 @@ struct GrAtlasTextBlob : public SkRefCnt {
|
||||
, fVertexEndIndex(0)
|
||||
, fGlyphStartIndex(0)
|
||||
, fGlyphEndIndex(0)
|
||||
, fDrawAsDistanceFields(false) {}
|
||||
, fTextRatio(1.0f)
|
||||
, fMaskFormat(kA8_GrMaskFormat)
|
||||
, fDrawAsDistanceFields(false)
|
||||
, fUseLCDText(false) {}
|
||||
SubRunInfo(const SubRunInfo& that)
|
||||
: fBulkUseToken(that.fBulkUseToken)
|
||||
, fStrike(SkSafeRef(that.fStrike.get()))
|
||||
|
Loading…
Reference in New Issue
Block a user