fix spelling: cannonical -> canonical
git-svn-id: http://skia.googlecode.com/svn/trunk@7074 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
b54a5d6fb9
commit
b5715a1c80
@ -118,8 +118,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/** Given a color, returns the closest cannonical color. */
|
||||
static SkColor CannonicalColor(SkColor color) {
|
||||
/** Given a color, returns the closest canonical color. */
|
||||
static SkColor CanonicalColor(SkColor color) {
|
||||
return SkColorSetRGB(
|
||||
sk_t_scale255<R_LUM_BITS>(SkColorGetR(color) >> (8 - R_LUM_BITS)),
|
||||
sk_t_scale255<G_LUM_BITS>(SkColorGetG(color) >> (8 - G_LUM_BITS)),
|
||||
|
@ -1690,7 +1690,7 @@ void SkScalerContext::PostMakeRec(const SkPaint& paint, SkScalerContext::Rec* re
|
||||
case SkMask::kLCD32_Format: {
|
||||
// filter down the luminance color to a finite number of bits
|
||||
SkColor color = rec->getLuminanceColor();
|
||||
rec->setLuminanceColor(SkMaskGamma::CannonicalColor(color));
|
||||
rec->setLuminanceColor(SkMaskGamma::CanonicalColor(color));
|
||||
break;
|
||||
}
|
||||
case SkMask::kA8_Format: {
|
||||
@ -1707,7 +1707,7 @@ void SkScalerContext::PostMakeRec(const SkPaint& paint, SkScalerContext::Rec* re
|
||||
|
||||
// reduce to our finite number of bits
|
||||
color = SkColorSetRGB(lum, lum, lum);
|
||||
rec->setLuminanceColor(SkMaskGamma::CannonicalColor(color));
|
||||
rec->setLuminanceColor(SkMaskGamma::CanonicalColor(color));
|
||||
break;
|
||||
}
|
||||
case SkMask::kBW_Format:
|
||||
|
Loading…
Reference in New Issue
Block a user