Home
last modified time | relevance | path

Searched refs:SkColorGetA (Results 1 – 25 of 57) sorted by relevance

123

/external/skia/tests/
DRuntimeBlendTest.cpp34 return abs((int)SkColorGetA(x) - (int)SkColorGetA(y)) <= kTolerance && in nearly_equal()
88 SkColorGetA(colors[0]), in test_blend()
92 SkColorGetA(colors[1]), in test_blend()
DColorMatrixTest.cpp20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
117 REPORTER_ASSERT(r, SkColorGetA(filtered) == 0xff); in DEF_TEST()
DNdkEncodeTest.cpp81 REPORTER_ASSERT(r, SkColorGetA(orig) == SkColorGetA(actual)); in DEF_TEST()
82 REPORTER_ASSERT(r, SkColorGetA(orig) == 0xFF); in DEF_TEST()
DNonlinearBlendingTest.cpp50 SkColorGetA(color) * (1 / 255.0f), in DEF_TEST()
/external/skia/docs/examples/
DPreMultiplyColor.cpp11 std::string str = "alpha=" + std::to_string(SkColorGetA(unpremultiplied));
17 str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
DColorGetA.cpp12 SkAlpha alphaInPaint = SkColorGetA(paint.getColor()); in draw()
DRGBA4f_toSkColor.cpp11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw()
DRGBA4f_FromColor.cpp13 SkColorGetG(fromColor4f), SkColorGetB(fromColor4f), SkColorGetA(fromColor4f)); in draw()
DPreMultiplyARGB.cpp12 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
DAlpha_Type_Premul.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DAlpha_Type_Opaque.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DAlpha_Type_Unpremul.cpp10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
DAlpha_Constants_b.cpp16 if (SkColorGetA(color) == SK_AlphaOPAQUE) { in draw()
DAlpha_Constants_a.cpp19 transparentCount += SkColorGetA(color) == SK_AlphaTRANSPARENT; in draw()
/external/skia/gm/
Dunpremul.cpp46 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anonf6f222590102()
Dcomposecolorfilter.cpp39 a_lo = SkColorGetA(lo), in MakeTintColorFilter()
43 a_hi = SkColorGetA(hi); in MakeTintColorFilter()
Dmixercolorfilter.cpp40 a_lo = SkColorGetA(lo), in MakeTintColorFilter()
44 a_hi = SkColorGetA(hi); in MakeTintColorFilter()
Daaxfermodes.cpp218 int maxSum = std::max(std::max(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
Dhsl.cpp143 SkASSERT(SkColorGetA(dst) == 0xff in blend()
144 && SkColorGetA(src) == 0xff); // Not fundamental, just simplifying for this GM. in blend()
/external/skia/tools/viewer/
DShadowColorSlide.cpp183 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
197 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
200 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
/external/skia/src/effects/imagefilters/
DSkAlphaThresholdImageFilter.cpp303 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
304 U8CPU alpha = SkColorGetA(source); in onFilterImage()
315 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
316 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
/external/skia/modules/skottie/src/text/
DTextAnimator.cpp160 const auto alpha = lerp(SkColorGetA(props.fill_color), in modulateProps()
168 const auto alpha = lerp(SkColorGetA(props.stroke_color), in modulateProps()
/external/skia/bench/
DShaderMaskFilterBench.cpp49 fName = SkStringPrintf("shadermaskfilter_%s_%x", nm, SkColorGetA(fColor));
/external/skia/src/utils/
DSkParseColor.cpp350 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
/external/skia/src/opts/
DSkBlitMask_opts.h187 SkASSERT(SkColorGetA(color) == 0xFF);
229 } else if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()

123