Home
last modified time | relevance | path

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

1234

/external/skqp/tests/
DColorMatrixTest.cpp22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
119 REPORTER_ASSERT(r, SkColorGetA(filtered) == 0xff); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp21 byte[3] = SkColorGetA(c); in pack_unpremul_rgba()
31 byte[3] = SkColorGetA(c); in pack_unpremul_bgra()
/external/skia/tests/
DColorMatrixTest.cpp22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
119 REPORTER_ASSERT(r, SkColorGetA(filtered) == 0xff); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp21 byte[3] = SkColorGetA(c); in pack_unpremul_rgba()
31 byte[3] = SkColorGetA(c); in pack_unpremul_bgra()
/external/skia/gm/
Dunpremul.cpp37 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anon5f72f5b40102()
Dmixercolorfilter.cpp81 a_lo = SkColorGetA(lo), in MakeTintColorFilter()
85 a_hi = SkColorGetA(hi); in MakeTintColorFilter()
Dhsl.cpp135 SkASSERT(SkColorGetA(dst) == 0xff in blend()
136 && SkColorGetA(src) == 0xff); // Not fundamental, just simplifying for this GM. in blend()
Daaxfermodes.cpp207 int maxSum = SkTMax(SkTMax(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
Dshadowutils.cpp18 SkColor ambientColor = SkColorSetARGB(ambientAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
/external/skqp/gm/
Dunpremul.cpp37 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anon6ae844cb0102()
Dhsl.cpp135 SkASSERT(SkColorGetA(dst) == 0xff in blend()
136 && SkColorGetA(src) == 0xff); // Not fundamental, just simplifying for this GM. in blend()
Daaxfermodes.cpp207 int maxSum = SkTMax(SkTMax(SkColorGetA(kBGColor) + SkColorGetA(color), in setupShapePaint()
Dshadowutils.cpp18 SkColor ambientColor = SkColorSetARGB(ambientAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
20 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow()
Dshapes_as_paths.cpp54 SkTAbs((int)(SkColorGetA(pixelA) - SkColorGetA(pixelB))); in draw_diff()
/external/skqp/samplecode/
DSampleShadowColor.cpp130 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
144 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
147 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
/external/skia/samplecode/
DSampleShadowColor.cpp130 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
144 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
147 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
/external/skqp/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp248 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
249 U8CPU alpha = SkColorGetA(source); in onFilterImage()
260 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
261 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
/external/skia/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp251 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
252 U8CPU alpha = SkColorGetA(source); in onFilterImage()
263 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
264 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
/external/skqp/docs/
DSkColor_Reference.bmh128 #Define SkColorGetA
146 SkAlpha alphaInPaint = SkColorGetA(paint.getColor());
317 transparentCount += SkColorGetA(color) == SK_AlphaTRANSPARENT;
355 if (SkColorGetA(color) == SK_AlphaOPAQUE) {
756 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
786 std::string str = "alpha=" + std::to_string(SkColorGetA(unpremultiplied));
792 str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
/external/skia/docs/
DSkColor_Reference.bmh128 #Define SkColorGetA
146 SkAlpha alphaInPaint = SkColorGetA(paint.getColor());
317 transparentCount += SkColorGetA(color) == SK_AlphaTRANSPARENT;
355 if (SkColorGetA(color) == SK_AlphaOPAQUE) {
756 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
786 std::string str = "alpha=" + std::to_string(SkColorGetA(unpremultiplied));
792 str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
/external/skia/src/opts/
DSkBlitMask_opts.h180 SkASSERT(SkColorGetA(color) == 0xFF);
222 } else if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()
/external/skqp/src/opts/
DSkBlitMask_opts.h180 SkASSERT(SkColorGetA(color) == 0xFF);
222 } else if (SkColorGetA(color) == 0xFF) { in blit_mask_d32_a8()
/external/skia/src/utils/
DSkShadowUtils.cpp491 *outAmbientColor = SkColorSetARGB(SkColorGetA(inAmbientColor), 0, 0, 0); in ComputeTonalColors()
500 SkScalar origA = SkColorGetA(inSpotColor)/255.f; in ComputeTonalColors()
599 if (SkColorGetA(rec.fAmbientColor) > 0) { in drawShadow()
678 if (SkColorGetA(rec.fSpotColor) > 0) { in drawShadow()
/external/skqp/src/utils/
DSkShadowUtils.cpp464 *outAmbientColor = SkColorSetARGB(SkColorGetA(inAmbientColor), 0, 0, 0); in ComputeTonalColors()
473 SkScalar origA = SkColorGetA(inSpotColor)/255.f; in ComputeTonalColors()
567 if (SkColorGetA(rec.fAmbientColor) > 0) { in drawShadow()
646 if (SkColorGetA(rec.fSpotColor) > 0) { in drawShadow()
/external/skqp/bench/
DShaderMaskFilterBench.cpp50 fName = SkStringPrintf("shadermaskfilter_%s_%x", nm, SkColorGetA(fColor)); in ShaderMFBench()

1234