diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-02-11 15:07:19 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-02-11 15:07:19 +0000 |
commit | 62900b4c64401bc80ae85f6f5c87309a273cae10 (patch) | |
tree | c36e459951deccd587a7c75d44f1d01653fad8f2 /include/core | |
parent | d9c0f0b57affec7a472879c5919acac6637d926a (diff) |
handle failure when creating a scalercontext
git-svn-id: http://skia.googlecode.com/svn/trunk@90 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkScalerContext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index ec2cd0db44..583833e18e 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -85,6 +85,12 @@ struct SkGlyph { size_t computeImageSize() const; + /** Call this to set all of the metrics fields to 0 (e.g. if the scaler + encounters an error measuring a glyph). Note: this does not alter the + fImage, fPath, fID, fMaskFormat fields. + */ + void zeroMetrics(); + enum { kSubBits = 2, kSubMask = ((1 << kSubBits) - 1), |