Searched refs:srcWeight (Results 1 – 4 of 4) 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()
180 U8CPU srcWeight) { in SkFourByteInterp() argument181 unsigned scale = SkAlpha255To256(srcWeight); in SkFourByteInterp()265 U8CPU srcWeight) { in SkFastFourByteInterp() argument266 SkASSERT(srcWeight <= 255); in SkFastFourByteInterp()269 return SkFastFourByteInterp256(src, dst, srcWeight + (srcWeight >> 7)); in SkFastFourByteInterp()
276 int srcWeight = srcStyle.weight(); in getFontStyleDifference() local286 if ((dstWeight == SkFontStyle::kNormal_Weight && srcWeight == SkFontStyle::kMedium_Weight) || in getFontStyleDifference()287 (dstWeight == SkFontStyle::kMedium_Weight && srcWeight == SkFontStyle::kNormal_Weight)) { in getFontStyleDifference()290 if (srcWeight <= dstWeight) { in getFontStyleDifference()291 weightDiff = dstWeight - srcWeight; in getFontStyleDifference()293 weightDiff = srcWeight - dstWeight + 500; in getFontStyleDifference()296 if (srcWeight >= dstWeight) { in getFontStyleDifference()297 weightDiff = srcWeight - dstWeight; in getFontStyleDifference()299 weightDiff = dstWeight - srcWeight + 500; in getFontStyleDifference()
76065 + int srcWeight = srcStyle.weight();76073 + // The maximum weight is kExtraBlack_Weight (1000), when dstWeight and srcWeight are at the di…76075 + if ((dstWeight == SkFontStyle::kNormal_Weight && srcWeight == SkFontStyle::kMedium_Weight) ||76076 + (dstWeight == SkFontStyle::kMedium_Weight && srcWeight == SkFontStyle::kNormal_Weight)) {76079 + if (srcWeight <= dstWeight) {76080 + weightDiff = dstWeight - srcWeight;76082 + weightDiff = srcWeight - dstWeight + 500;76085 + if (srcWeight >= dstWeight) {76086 + weightDiff = srcWeight - dstWeight;76088 + weightDiff = dstWeight - srcWeight + 500;