Set fReservedAlign to 0.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 10:06:19 +0000 (10:06 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 10:06:19 +0000 (10:06 +0000)
Cleans scalar context key and should fix http://code.google.com/p/chromium/issues/detail?id=140196

git-svn-id: http://skia.googlecode.com/svn/trunk@4904 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkPaint.cpp

index 94a4d22d7dd9f3ab38a007c1c284e4741c763cb3..134aa56bde7efe52e2fb335c15a2cc307fb6df84 100644 (file)
@@ -1596,6 +1596,7 @@ void SkScalerContext::MakeRec(const SkPaint& paint,
     rec->setPaintGamma(SkFloatToScalar(SK_GAMMA_EXPONENT));
 #endif
     rec->setContrast(SkFloatToScalar(SK_GAMMA_CONTRAST));
+    rec->fReservedAlign = 0;
     
     /*  Allow the fonthost to modify our rec before we use it as a key into the
         cache. This way if we're asking for something that they will ignore,