summaryrefslogtreecommitdiffstats
path: root/skia/sgl/SkScalerContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'skia/sgl/SkScalerContext.cpp')
-rw-r--r--skia/sgl/SkScalerContext.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/skia/sgl/SkScalerContext.cpp b/skia/sgl/SkScalerContext.cpp
index 854c4de..0129dea 100644
--- a/skia/sgl/SkScalerContext.cpp
+++ b/skia/sgl/SkScalerContext.cpp
@@ -52,6 +52,17 @@ size_t SkGlyph::computeImageSize() const {
return size;
}
+void SkGlyph::zeroMetrics() {
+ fAdvanceX = 0;
+ fAdvanceY = 0;
+ fWidth = 0;
+ fHeight = 0;
+ fTop = 0;
+ fLeft = 0;
+ fRsbDelta = 0;
+ fLsbDelta = 0;
+}
+
#ifdef SK_DEBUG
#define DUMP_RECx
#endif