/external/skqp/src/core/ |
D | SkMaskGamma.cpp | 98 table[i] = SkToU8(sk_float_round2int(255.0f * srca)); in SkTMaskGamma_build_correcting_lut() 120 SkASSERT(sk_float_round2int(255.0f * result) <= 255); in SkTMaskGamma_build_correcting_lut() 122 table[i] = SkToU8(sk_float_round2int(255.0f * result)); in SkTMaskGamma_build_correcting_lut()
|
D | SkColorFilter.cpp | 60 return SkColorSetARGB(sk_float_round2int(c4.fA*255), in filterColor() 61 sk_float_round2int(c4.fR*255), in filterColor() 62 sk_float_round2int(c4.fG*255), in filterColor() 63 sk_float_round2int(c4.fB*255)); in filterColor()
|
D | SkDevice.cpp | 87 return x == (float) sk_float_round2int(x); in is_int()
|
D | SkDistanceFieldGen.cpp | 447 unsigned char val = sk_float_round2int(255*result); in generate_distance_field_from_image()
|
/external/skia/src/core/ |
D | SkMaskGamma.cpp | 98 table[i] = SkToU8(sk_float_round2int(255.0f * srca)); in SkTMaskGamma_build_correcting_lut() 120 SkASSERT(sk_float_round2int(255.0f * result) <= 255); in SkTMaskGamma_build_correcting_lut() 122 table[i] = SkToU8(sk_float_round2int(255.0f * result)); in SkTMaskGamma_build_correcting_lut()
|
D | SkDistanceFieldGen.cpp | 448 unsigned char val = sk_float_round2int(255*result); in generate_distance_field_from_image()
|
/external/skia/gm/ |
D | imagefromyuvtextures.cpp | 89 sk_float_round2int(m[0]*r + m[1]*g + m[2]*b + m[3]*a + 255*m[4])); in CreatePlanes() 90 yuvPixels[3][j*pixmaps.planes()[0].width() + i] = SkToU8(sk_float_round2int( in CreatePlanes() 115 yuvPixels[1][uvIndex] = SkToU8(sk_float_round2int( in CreatePlanes() 117 yuvPixels[2][uvIndex] = SkToU8(sk_float_round2int( in CreatePlanes()
|
/external/skia/tools/viewer/ |
D | TouchGesture.cpp | 81 tx = (float)sk_float_round2int(tx); in evaluateMatrix() 82 ty = (float)sk_float_round2int(ty); in evaluateMatrix() 240 dx = (float)sk_float_round2int(dx); in touchMoved() 241 dy = (float)sk_float_round2int(dy); in touchMoved()
|
/external/skqp/tools/viewer/ |
D | TouchGesture.cpp | 81 tx = (float)sk_float_round2int(tx); in evaluateMatrix() 82 ty = (float)sk_float_round2int(ty); in evaluateMatrix() 239 dx = (float)sk_float_round2int(dx); in touchMoved() 240 dy = (float)sk_float_round2int(dy); in touchMoved()
|
/external/skqp/modules/sksg/src/ |
D | SkSGRenderNode.cpp | 24 alpha = SkToU8(sk_float_round2int(initial_alpha * fOpacity)); in modulatePaint()
|
/external/skqp/src/effects/ |
D | SkTableMaskFilter.cpp | 131 table[i] = SkTPin(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
|
/external/skia/src/effects/ |
D | SkTableMaskFilter.cpp | 132 table[i] = SkTPin(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
|
/external/skqp/include/private/ |
D | SkFloatingPoint.h | 119 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f)) macro
|
/external/skia/include/core/ |
D | SkScalar.h | 36 #define SkScalarRoundToInt(x) sk_float_round2int(x)
|
D | SkPaint.h | 287 uint8_t getAlpha() const { return sk_float_round2int(this->getAlphaf() * 255); } in getAlpha()
|
/external/skqp/include/core/ |
D | SkScalar.h | 36 #define SkScalarRoundToInt(x) sk_float_round2int(x)
|
D | SkPaint.h | 268 uint8_t getAlpha() const { return sk_float_round2int(fColor4f.fA * 255); } in getAlpha()
|
D | SkMatrix44.h | 78 #define SkMScalarRoundToInt(x) sk_float_round2int(x)
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.cpp | 1016 color = SkColorSetARGB(sk_float_round2int(colorGlyph->runColor.a * 255), in generateColorGlyphImage() 1017 sk_float_round2int(colorGlyph->runColor.r * 255), in generateColorGlyphImage() 1018 sk_float_round2int(colorGlyph->runColor.g * 255), in generateColorGlyphImage() 1019 sk_float_round2int(colorGlyph->runColor.b * 255)); in generateColorGlyphImage()
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 1042 color = SkColorSetARGB(sk_float_round2int(colorGlyph->runColor.a * 255), in generateColorGlyphImage() 1043 sk_float_round2int(colorGlyph->runColor.r * 255), in generateColorGlyphImage() 1044 sk_float_round2int(colorGlyph->runColor.g * 255), in generateColorGlyphImage() 1045 sk_float_round2int(colorGlyph->runColor.b * 255)); in generateColorGlyphImage()
|
/external/skia/include/private/ |
D | SkFloatingPoint.h | 147 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f)) macro
|
/external/skia/modules/sksg/src/ |
D | SkSGRenderNode.cpp | 54 return SkToU8(sk_float_round2int(alpha * opacity)); in ScaleAlpha()
|
/external/skqp/src/pdf/ |
D | SkPDFUtils.cpp | 276 int x = sk_float_round2int(value * kFactor); in ColorToDecimalF()
|
/external/skia/src/pdf/ |
D | SkPDFUtils.cpp | 284 int x = sk_float_round2int(value * kFactor); in ColorToDecimalF()
|
/external/skia/src/utils/ |
D | SkCustomTypeface.cpp | 249 stream->write16(SkToS16(sk_float_round2int(x * scale)) & 0xFFFF); in write_scaled_float_to_16()
|