Home
last modified time | relevance | path

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

12345

/third_party/skia/tests/
DRuntimeBlendTest.cpp24 return abs((int)SkColorGetA(x) - (int)SkColorGetA(y)) <= kTolerance && in nearly_equal()
65 SkColorGetA(colors[0]), in test_blend()
69 SkColorGetA(colors[1]), in test_blend()
DColorMatrixTest.cpp21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
118 REPORTER_ASSERT(r, SkColorGetA(filtered) == 0xff); in DEF_TEST()
DSkSLTest.cpp123 SkColorGetB(color[0][0]), SkColorGetA(color[0][0]), in test_one_permutation()
126 SkColorGetB(color[0][1]), SkColorGetA(color[0][1]), in test_one_permutation()
129 SkColorGetB(color[1][0]), SkColorGetA(color[1][0]), in test_one_permutation()
132 SkColorGetB(color[1][1]), SkColorGetA(color[1][1])); in test_one_permutation()
/third_party/flutter/skia/tests/
DColorMatrixTest.cpp21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color()
118 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()
/third_party/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()
DPreMultiplyARGB.cpp12 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
/third_party/flutter/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()
DPreMultiplyARGB.cpp12 std::string str = "alpha=" + std::to_string(SkColorGetA(premultiplied));
DRGBA4f_FromColor.cpp13 SkColorGetG(fromColor4f), SkColorGetB(fromColor4f), SkColorGetA(fromColor4f)); in draw()
/third_party/skia/gm/
Dunpremul.cpp46 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anon7b332d670102()
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()
/third_party/flutter/skia/gm/
Dunpremul.cpp45 close(SkColorGetA(pixel), SkColorGetA(color))) { in __anoncf23b57c0102()
/third_party/skia/samplecode/
DSampleShadowColor.cpp125 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
139 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
142 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
/third_party/flutter/skia/samplecode/
DSampleShadowColor.cpp125 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
139 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
142 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
/third_party/flutter/engine/flutter/flow/layers/
Dphysical_shape_layer.cc151 SkColorGetA(color_) != 0xff, device_pixel_ratio_); in Paint()
206 SkColor inAmbient = SkColorSetA(color, kAmbientAlpha * SkColorGetA(color)); in DrawShadow()
207 SkColor inSpot = SkColorSetA(color, kSpotAlpha * SkColorGetA(color)); in DrawShadow()
/third_party/flutter/skia/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp239 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
240 U8CPU alpha = SkColorGetA(source); in onFilterImage()
251 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
252 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
/third_party/skia/src/effects/imagefilters/
DSkAlphaThresholdImageFilter.cpp276 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
277 U8CPU alpha = SkColorGetA(source); in onFilterImage()
288 if (SkColorGetA(source) > outerThreshold) { in onFilterImage()
289 float scale = (float)outerThreshold / SkColorGetA(source); in onFilterImage()
/third_party/cef/patch/patches/
Drwh_background_color_1984.patch18 - bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
23 + bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
/third_party/skia/experimental/sorttoy/
DFake.h173 return 0xFF != SkColorGetA(fColor0); in isTransparent()
175 return 0xFF != SkColorGetA(fColor0) && 0xFF != SkColorGetA(fColor1); in isTransparent()

12345