Home
last modified time | relevance | path

Searched refs:srcWeight (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/include/private/
DSkColorData.h178 static inline SkPMColor SkFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFourByteInterp() argument
179 int scale = (int)SkAlpha255To256(srcWeight); in SkFourByteInterp()
261 static inline SkPMColor SkFastFourByteInterp(SkPMColor src, SkPMColor dst, U8CPU srcWeight) { in SkFastFourByteInterp() argument
262 SkASSERT(srcWeight <= 255); in SkFastFourByteInterp()
265 return SkFastFourByteInterp256(src, dst, srcWeight + (srcWeight >> 7)); in SkFastFourByteInterp()
/third_party/skia/src/ports/skia_ohos/
DFontConfig_ohos.cpp302 int srcWeight = srcStyle.weight(); in getFontStyleDifference() local
307 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()