aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar scarybeasts@gmail.com <scarybeasts@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-10-18 23:29:36 +0000
committerGravatar scarybeasts@gmail.com <scarybeasts@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-10-18 23:29:36 +0000
commit17f694b0386ae42e66e76ffa19a0dabbc2191c62 (patch)
tree20066ca9cbc731c1ef041bd709977b3d5497fef3 /include/core
parent6b9de8cb93f2aa970f2d407381c3768ae505f710 (diff)
Clamp the maximum size of glyph width we will attempt to render.
Review URL: http://codereview.appspot.com/2519045 git-svn-id: http://skia.googlecode.com/svn/trunk@607 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkScalerContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h
index 7cb0d2f81b..ab43b14011 100644
--- a/include/core/SkScalerContext.h
+++ b/include/core/SkScalerContext.h
@@ -31,6 +31,8 @@ class SkRasterizer;
// needs to be != to any valid SkMask::Format
#define MASK_FORMAT_JUST_ADVANCE (0xFF)
+#define kMaxGlyphWidth (1<<13)
+
struct SkGlyph {
void* fImage;
SkPath* fPath;