Searched refs:SkColorGetA (Results 1 – 25 of 57) sorted by relevance
123
/external/skia/tests/ |
D | RuntimeBlendTest.cpp | 34 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()
|
D | ColorMatrixTest.cpp | 20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color() 117 REPORTER_ASSERT(r, SkColorGetA(filtered) == 0xff); in DEF_TEST()
|
D | NdkEncodeTest.cpp | 81 REPORTER_ASSERT(r, SkColorGetA(orig) == SkColorGetA(actual)); in DEF_TEST() 82 REPORTER_ASSERT(r, SkColorGetA(orig) == 0xFF); in DEF_TEST()
|
D | NonlinearBlendingTest.cpp | 50 SkColorGetA(color) * (1 / 255.0f), in DEF_TEST()
|
/external/skia/docs/examples/ |
D | PreMultiplyColor.cpp | 11 std::string str = "alpha=" + std::to_string(SkColorGetA(unpremultiplied)); 17 str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
|
D | ColorGetA.cpp | 12 SkAlpha alphaInPaint = SkColorGetA(paint.getColor()); in draw()
|
D | RGBA4f_toSkColor.cpp | 11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw()
|
D | RGBA4f_FromColor.cpp | 13 SkColorGetG(fromColor4f), SkColorGetB(fromColor4f), SkColorGetA(fromColor4f)); in draw()
|
D | PreMultiplyARGB.cpp | 12 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
|
D | Alpha_Type_Premul.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | Alpha_Type_Opaque.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | Alpha_Type_Unpremul.cpp | 10 s.printf("%u %u %u %u", SkColorGetA(color), SkColorGetR(color),
|
D | Alpha_Constants_b.cpp | 16 if (SkColorGetA(color) == SK_AlphaOPAQUE) { in draw()
|
D | Alpha_Constants_a.cpp | 19 transparentCount += SkColorGetA(color) == SK_AlphaTRANSPARENT; in draw()
|
/external/skia/gm/ |
D | unpremul.cpp | 46 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anonf6f222590102()
|
D | composecolorfilter.cpp | 39 a_lo = SkColorGetA(lo), in MakeTintColorFilter() 43 a_hi = SkColorGetA(hi); in MakeTintColorFilter()
|
D | mixercolorfilter.cpp | 40 a_lo = SkColorGetA(lo), in MakeTintColorFilter() 44 a_hi = SkColorGetA(hi); in MakeTintColorFilter()
|
D | aaxfermodes.cpp | 218 int maxSum = std::max(std::max(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
|
D | hsl.cpp | 143 SkASSERT(SkColorGetA(dst) == 0xff in blend() 144 && SkColorGetA(src) == 0xff); // Not fundamental, just simplifying for this GM. in blend()
|
/external/skia/tools/viewer/ |
D | ShadowColorSlide.cpp | 183 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/ |
D | SkAlphaThresholdImageFilter.cpp | 303 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/ |
D | TextAnimator.cpp | 160 const auto alpha = lerp(SkColorGetA(props.fill_color), in modulateProps() 168 const auto alpha = lerp(SkColorGetA(props.stroke_color), in modulateProps()
|
/external/skia/bench/ |
D | ShaderMaskFilterBench.cpp | 49 fName = SkStringPrintf("shadermaskfilter_%s_%x", nm, SkColorGetA(fColor));
|
/external/skia/src/utils/ |
D | SkParseColor.cpp | 350 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
|
/external/skia/src/opts/ |
D | SkBlitMask_opts.h | 187 SkASSERT(SkColorGetA(color) == 0xFF); 229 } else if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()
|
123