Home
last modified time | relevance | path

Searched refs:SkColorGetG (Results 1 – 25 of 112) sorted by relevance

12345

/third_party/skia/tests/
DRuntimeBlendTest.cpp26 abs((int)SkColorGetG(x) - (int)SkColorGetG(y)) <= kTolerance && in nearly_equal()
67 SkColorGetG(colors[0]), in test_blend()
71 SkColorGetG(colors[1]), in test_blend()
DColorMatrixTest.cpp23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); in assert_color()
120 REPORTER_ASSERT(r, SkColorGetG(filtered) == 0xff); in DEF_TEST()
DSkSLTest.cpp122 SkColorGetR(color[0][0]), SkColorGetG(color[0][0]), in test_one_permutation()
125 SkColorGetR(color[0][1]), SkColorGetG(color[0][1]), in test_one_permutation()
128 SkColorGetR(color[1][0]), SkColorGetG(color[1][0]), in test_one_permutation()
131 SkColorGetR(color[1][1]), SkColorGetG(color[1][1]), in test_one_permutation()
/third_party/skia/samplecode/
DSampleShadowColor.cpp118 uint8_t max = std::max(std::max(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
120 uint8_t min = std::min(std::min(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
126 SkColorGetG(color), SkColorGetB(color)); in drawShadowedPath()
140 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
143 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
/third_party/flutter/skia/samplecode/
DSampleShadowColor.cpp118 uint8_t max = SkTMax(SkTMax(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
120 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), in drawShadowedPath()
126 SkColorGetG(color), SkColorGetB(color)); in drawShadowedPath()
140 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
143 SkColorGetR(color), SkColorGetG(color), in drawShadowedPath()
/third_party/flutter/skia/src/effects/
DSkColorMatrixFilter.cpp28 byte_to_unit_float(SkColorGetG(mul)), in MakeLightingFilter()
32 byte_to_unit_float(SkColorGetG(add)), in MakeLightingFilter()
/third_party/skia/src/effects/
DSkColorMatrixFilter.cpp28 byte_to_unit_float(SkColorGetG(mul)), in MakeLightingFilter()
32 byte_to_unit_float(SkColorGetG(add)), in MakeLightingFilter()
/third_party/flutter/skia/tests/
DColorMatrixTest.cpp23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); in assert_color()
120 REPORTER_ASSERT(r, SkColorGetG(filtered) == 0xff); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp19 byte[1] = SkColorGetG(c); in pack_unpremul_rgba()
29 byte[1] = SkColorGetG(c); in pack_unpremul_bgra()
/third_party/skia/docs/examples/
DPreMultiplyColor.cpp13 str += " green=" + std::to_string(SkColorGetG(unpremultiplied));
19 str += " green=" + std::to_string(SkColorGetG(premultiplied));
DPaint_getColor.cpp11 (int) (SkColorGetG(y) / 2.55f), (int) (SkColorGetB(y) / 2.55f)); in draw()
DColorGetG.cpp12 uint8_t green = SkColorGetG(source.getColor(57, 192));
DRGBA4f_toSkColor.cpp11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw()
/third_party/flutter/skia/docs/examples/
DPreMultiplyColor.cpp13 str += " green=" + std::to_string(SkColorGetG(unpremultiplied));
19 str += " green=" + std::to_string(SkColorGetG(premultiplied));
DPaint_getColor.cpp11 (int) (SkColorGetG(y) / 2.55f), (int) (SkColorGetB(y) / 2.55f)); in draw()
DColorGetG.cpp12 uint8_t green = SkColorGetG(source.getColor(57, 192));
DRGBA4f_toSkColor.cpp11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw()
DPreMultiplyARGB.cpp14 str += " green=" + std::to_string(SkColorGetG(premultiplied));
DRGBA4f_FromColor.cpp13 SkColorGetG(fromColor4f), SkColorGetB(fromColor4f), SkColorGetA(fromColor4f)); in draw()
/third_party/skia/gm/
Dunpremul.cpp44 close(SkColorGetG(pixel), SkColorGetG(color)) && in __anon7b332d670102()
Dcomposecolorfilter.cpp37 g_lo = SkColorGetG(lo), in MakeTintColorFilter()
41 g_hi = SkColorGetG(hi), in MakeTintColorFilter()
Dmixercolorfilter.cpp38 g_lo = SkColorGetG(lo), in MakeTintColorFilter()
42 g_hi = SkColorGetG(hi), in MakeTintColorFilter()
/third_party/flutter/skia/gm/
Dunpremul.cpp43 close(SkColorGetG(pixel), SkColorGetG(color)) && in __anoncf23b57c0102()
/third_party/flutter/skia/src/core/
DSkMaskGamma.h37 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255); in computeLuminance()
126 sk_t_scale255<G_LUM_BITS>(SkColorGetG(color) >> (8 - G_LUM_BITS)), in CanonicalColor()
212 fGammaTables[SkColorGetG(color) >> (8 - MAX_LUM_BITS)], in preBlend()
/third_party/skia/src/core/
DSkMaskGamma.h37 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255); in computeLuminance()
126 sk_t_scale255<G_LUM_BITS>(SkColorGetG(color) >> (8 - G_LUM_BITS)), in CanonicalColor()
212 fGammaTables[SkColorGetG(color) >> (8 - MAX_LUM_BITS)], in preBlend()

12345