Searched refs:SK_Fixed1 (Results 1 – 13 of 13) sorted by relevance
21 #define SK_Fixed1 (1 << 16) macro33 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1))37 int64_t n = x * SK_Fixed1; in SkFloatToFixed()44 int64_t n64 = (int64_t)(x * SK_Fixed1); in SkFloatToFixed_Check()54 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1))71 #define SkFixedCeilToInt(x) (((x) + SK_Fixed1 - 1) >> 16)75 #define SkFixedCeilToFixed(x) (((x) + SK_Fixed1 - 1) & 0xFFFF0000)
53 SkASSERT(n >= 0 && n <= SK_Fixed1); in build_gamma_table()110 fy += SK_Fixed1/2; in drawCap()127 return fy - SK_Fixed1/2; in drawCap()134 fy += SK_Fixed1/2; in drawLine()150 return fy - SK_Fixed1/2; in drawLine()157 fy += SK_Fixed1/2; in drawCap()165 return fy + dy - SK_Fixed1/2; in drawCap()171 fy += SK_Fixed1/2; in drawLine()180 return fy - SK_Fixed1/2; in drawLine()188 fx += SK_Fixed1/2; in drawCap()[all …]
38 return -SK_Fixed1; in adjust()40 return +SK_Fixed1; in adjust()
29 if (dx <= SK_Fixed1 / 256) { in can_truncate_to_fixed_for_decal()
504 fFilterOneX = SK_Fixed1; in chooseMatrixProc()505 fFilterOneY = SK_Fixed1; in chooseMatrixProc()510 fFilterOneX = SK_Fixed1 / fBitmap->width(); in chooseMatrixProc()511 fFilterOneY = SK_Fixed1 / fBitmap->height(); in chooseMatrixProc()
99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale); in SkHSVToColor()
153 #define SK_Fixed1Third (SK_Fixed1/3)154 #define SK_Fixed2Third (SK_Fixed1*2/3)
180 SkFixed dp = SK_Fixed1 / (desc.fCount - 1); in SkGradientShaderBase()189 recs->fPos = SK_Fixed1; in SkGradientShaderBase()259 recsTemp[i].fPos = SK_Fixed1 - recSrc[offset].fPos; in FlipGradientColors()522 SkASSERT((unsigned)x <= SK_Fixed1); in SkFixedToFFFF()
34 uint8_t value = SkToU8(SkFixedSqrt(i * SK_Fixed1 / kSQRT_TABLE_SIZE) >> 8);
398 return SkAbs32(x) < (SK_Fixed1 >> 12); in fixed_nearly_zero()
516 REPORTER_ASSERT(reporter, result == SK_Fixed1); in DEF_TEST()517 result = SkFixedDiv(1, SK_Fixed1); in DEF_TEST()
159 int32_t one = SK_Fixed1; in initState()
1086 case SkPaint::kRight_Align: origin = SK_Fixed1; break; in internalDrawDFText()