Searched refs:srcWeight (Results 1 – 2 of 2) sorted by relevance
178 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFourByteInterp() argument179 int scale = (int)SkAlpha255To256(srcWeight); in SkFourByteInterp()261 static inline SkPMColor SkFastFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFastFourByteInterp() argument262 SkASSERT(srcWeight <= 255); in SkFastFourByteInterp()265 return SkFastFourByteInterp256(src, dst, srcWeight + (srcWeight >> 7)); in SkFastFourByteInterp()
302 int srcWeight = srcStyle.weight(); in getFontStyleDifference() local307 if ((dstWeight == SkFontStyle::kNormal_Weight && srcWeight == SkFontStyle::kMedium_Weight) || in getFontStyleDifference()308 (dstWeight == SkFontStyle::kMedium_Weight && srcWeight == SkFontStyle::kNormal_Weight)) { in getFontStyleDifference()311 if (srcWeight <= dstWeight) { in getFontStyleDifference()312 weightDiff = dstWeight - srcWeight; in getFontStyleDifference()314 weightDiff = srcWeight - dstWeight + 500; in getFontStyleDifference()317 if (srcWeight >= dstWeight) { in getFontStyleDifference()318 weightDiff = srcWeight - dstWeight; in getFontStyleDifference()320 weightDiff = dstWeight - srcWeight + 500; in getFontStyleDifference()