Home
last modified time | relevance | path

Searched refs:srcWeight (Results 1 – 4 of 4) 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/flutter/skia/include/private/
DSkColorData.h180 U8CPU srcWeight) { in SkFourByteInterp() argument
181 unsigned scale = SkAlpha255To256(srcWeight); in SkFourByteInterp()
265 U8CPU srcWeight) { in SkFastFourByteInterp() argument
266 SkASSERT(srcWeight <= 255); in SkFastFourByteInterp()
269 return SkFastFourByteInterp256(src, dst, srcWeight + (srcWeight >> 7)); in SkFastFourByteInterp()
/third_party/flutter/skia/src/ports/skia_ohos/
DFontConfig_ohos.cpp276 int srcWeight = srcStyle.weight(); in getFontStyleDifference() local
286 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()
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch76065 + 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;