Home
last modified time | relevance | path

Searched refs:SK_Fixed1 (Results 1 – 13 of 13) sorted by relevance

/external/skia/include/core/
DSkFixed.h21 #define SK_Fixed1 (1 << 16) macro
33 #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)
/external/skia/src/core/
DSkScan_Antihair.cpp53 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 …]
DSkAutoKern.h38 return -SK_Fixed1; in adjust()
40 return +SK_Fixed1; in adjust()
DSkBitmapProcState_utils.h29 if (dx <= SK_Fixed1 / 256) { in can_truncate_to_fixed_for_decal()
DSkBitmapProcState_matrixProcs.cpp504 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()
DSkColor.cpp99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale); in SkHSVToColor()
/external/skia/src/utils/
DSkInterpolator.cpp153 #define SK_Fixed1Third (SK_Fixed1/3)
154 #define SK_Fixed2Third (SK_Fixed1*2/3)
/external/skia/src/effects/gradients/
DSkGradientShader.cpp180 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()
DSkRadialGradient.cpp34 uint8_t value = SkToU8(SkFixedSqrt(i * SK_Fixed1 / kSQRT_TABLE_SIZE) >> 8);
DSkLinearGradient.cpp398 return SkAbs32(x) < (SK_Fixed1 >> 12); in fixed_nearly_zero()
/external/skia/tests/
DMathTest.cpp516 REPORTER_ASSERT(reporter, result == SK_Fixed1); in DEF_TEST()
517 result = SkFixedDiv(1, SK_Fixed1); in DEF_TEST()
/external/skia/src/effects/
DSkColorMatrixFilter.cpp159 int32_t one = SK_Fixed1; in initState()
/external/skia/src/gpu/
DGrAtlasTextContext.cpp1086 case SkPaint::kRight_Align: origin = SK_Fixed1; break; in internalDrawDFText()