Home
last modified time | relevance | path

Searched refs:fG (Results 1 – 25 of 125) sorted by relevance

12345

/third_party/flutter/skia/include/core/
DSkColor.h245 float fG; //!< green component member
255 return fA == other.fA && fR == other.fR && fG == other.fG && fB == other.fB;
273 return { fR * scale, fG * scale, fB * scale, fA * scale };
282 return { fR * scale.fR, fG * scale.fG, fB * scale.fB, fA * scale.fA };
331 fG >= 0.0f && fG <= 1.0f && in fitsInBytes()
361 return { fR * fA, fG * fA, fB * fA, fA }; in premul()
376 return { fR * invAlpha, fG * invAlpha, fB * invAlpha, fA }; in unpremul()
385 return { fR, fG, fB, 1.0f }; in makeOpaque()
/third_party/skia/include/core/
DSkColor.h262 float fG; //!< green component member
272 return fA == other.fA && fR == other.fR && fG == other.fG && fB == other.fB;
290 return { fR * scale, fG * scale, fB * scale, fA * scale };
299 return { fR * scale.fR, fG * scale.fG, fB * scale.fB, fA * scale.fA };
315 std::array<float, 4> array() const { return {fR, fG, fB, fA}; } in array()
351 fG >= 0.0f && fG <= 1.0f && in fitsInBytes()
385 return { fR * fA, fG * fA, fB * fA, fA }; in premul()
400 return { fR * invAlpha, fG * invAlpha, fB * invAlpha, fA }; in unpremul()
409 return { fR, fG, fB, 1.0f }; in makeOpaque()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrColorMatrixFragmentProcessor.h25 color.fG = input.fG; in constantOutputForConstantInput()
31 color.fG += v.fData[1]; in constantOutputForConstantInput()
37 color.fG = SkTPin(color.fG, 0.f, 1.f); in constantOutputForConstantInput()
43 return {color.fR, color.fG, color.fB, color.fA}; in constantOutputForConstantInput()
DGrMixerEffect.h33 return {c0.fR + (c1.fR - c0.fR) * weight, c0.fG + (c1.fG - c0.fG) * weight, in constantOutputForConstantInput()
DGrOverrideInputFragmentProcessor.cpp43 _outer.literalColor.fR, _outer.literalColor.fG, _outer.literalColor.fB, in emitCode()
72 uint16_t green = SkFloatToHalf(literalColor.fG); in onGetGLSLProcessorKey()
/third_party/flutter/skia/src/gpu/effects/
DGrColorMatrixFragmentProcessor.fp44 color.fG = input.fG;
50 color.fG += v.fData[1];
56 color.fG = SkTPin(color.fG, 0.f, 1.f);
62 return {color.fR, color.fG, color.fB, color.fA};
DGrMixerEffect.fp32 c0.fG + (c1.fG - c0.fG) * weight,
DGrDistanceFieldGeoProc.h212 SkScalar fR, fG, fB; member
215 result.fR = r; result.fG = g; result.fB = b; in Make()
219 return (fR == wa.fR && fG == wa.fG && fB == wa.fB);
DGrSRGBEffect.cpp104 color = { linear_to_srgb(color.fR), linear_to_srgb(color.fG), linear_to_srgb(color.fB), in constantOutputForConstantInput()
108 color = { srgb_to_linear(color.fR), srgb_to_linear(color.fG), srgb_to_linear(color.fB), in constantOutputForConstantInput()
/third_party/skia/src/core/
DSkMaskGamma.h181 : fParent(std::move(parent)), fR(r), fG(g), fB(b) { } in SkTMaskPreBlend()
187 SkTMaskPreBlend() : fParent(), fR(nullptr), fG(nullptr), fB(nullptr) { } in SkTMaskPreBlend()
194 : fParent(that.fParent), fR(that.fR), fG(that.fG), fB(that.fB) { } in SkTMaskPreBlend()
199 bool isApplicable() const { return SkToBool(this->fG); } in isApplicable()
202 const uint8_t* fG; variable
DSkCompressedDataUtils.cpp75 int fR, fG, fB; member
80 int g8 = SkTPin(col.fG + delta, 0, 255); in add_delta_and_clamp()
106 colors[0].fG = extend_5To8bits(high >> 19); in decompress_etc1()
107 colors[1].fG = extend_5plus3To8Bits(high >> 19, high >> 16); in decompress_etc1()
113 colors[0].fG = extend_4To8bits(high >> 20); in decompress_etc1()
114 colors[1].fG = extend_4To8bits(high >> 16); in decompress_etc1()
/third_party/flutter/skia/src/core/
DSkMaskGamma.h181 : fParent(std::move(parent)), fR(r), fG(g), fB(b) { } in SkTMaskPreBlend()
187 SkTMaskPreBlend() : fParent(), fR(nullptr), fG(nullptr), fB(nullptr) { } in SkTMaskPreBlend()
194 : fParent(that.fParent), fR(that.fR), fG(that.fG), fB(that.fB) { } in SkTMaskPreBlend()
199 bool isApplicable() const { return SkToBool(this->fG); } in isApplicable()
202 const uint8_t* fG; variable
/third_party/skia/tests/
DSRGBTest.cpp120 rgba[i].fR, rgba[i].fG, rgba[i].fB, in DEF_TEST()
121 want.fR, want.fG, want.fB); in DEF_TEST()
124 REPORTER_ASSERT(r, close(rgba[i].fG, want.fG)); in DEF_TEST()
DProcessorTest.cpp466 SkASSERT(inf[i].fR == 0 && inf[i].fG == 0 && inf[i].fB == 0); in legal_modulation()
490 inf[i].fR, inf[i].fG, inf[i].fB, inf[i].fA, in legal_modulation()
491 outf[i].fR, outf[i].fG, outf[i].fB, outf[i].fA, in legal_modulation()
492 expectedForColorModulation[i].fR, expectedForColorModulation[i].fG, in legal_modulation()
505 inf[i].fR, inf[i].fG, inf[i].fB, inf[i].fA, in legal_modulation()
506 outf[i].fR, outf[i].fG, outf[i].fB, outf[i].fA, in legal_modulation()
507 expectedForAlphaModulation[i].fR, expectedForAlphaModulation[i].fG, in legal_modulation()
690 float gDiff = fabsf(output4f.fG - expected4f.fG); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
704 kTol, input4f.fR, input4f.fG, input4f.fB, input4f.fA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
705 output4f.fR, output4f.fG, output4f.fB, output4f.fA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all …]
/third_party/flutter/skia/tests/
DSRGBTest.cpp125 rgba[i].fR, rgba[i].fG, rgba[i].fB, in test_roundtripping()
126 want.fR, want.fG, want.fB); in test_roundtripping()
129 REPORTER_ASSERT(r, close(rgba[i].fG, want.fG)); in test_roundtripping()
/third_party/skia/modules/skottie/src/effects/
DShiftChannelsEffect.cpp55 .bind(kTakeGreenFrom_Index, fG) in ShiftChannelsEffectAdapter()
100 const float* gc = coeffs(fG); in onSync()
117 fG = static_cast<float>(Source::kGreen),
/third_party/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.h210 SkScalar fR, fG, fB; member
213 result.fR = r; result.fG = g; result.fB = b; in Make()
217 return (fR == wa.fR && fG == wa.fG && fB == wa.fB);
/third_party/flutter/skia/modules/particles/src/
DSkCurve.cpp19 return { c1.fR + c2.fR, c1.fG + c2.fG, c1.fB + c2.fB, c1.fA + c2.fA }; in operator +()
23 return { c1.fR - c2.fR, c1.fG - c2.fG, c1.fB - c2.fB, c1.fA - c2.fA }; in operator -()
/third_party/flutter/skia/src/shaders/gradients/
DSkGradientShader.cpp219 (ctx->fs[1])[stop] = Fs.fG; in add_stop_color()
223 (ctx->bs[1])[stop] = Bs.fG; in add_stop_color()
239 (c_r.fG - c_l.fG) * gapCount, in init_stop_evenly()
245 c_l.fG - Fs.fG*(stop/gapCount), in init_stop_evenly()
259 (c_r.fG - c_l.fG) / (t_r - t_l), in init_stop_pos()
265 c_l.fG - Fs.fG*t_l, in init_stop_pos()
318 : SkPMColor4f{ c.fR, c.fG, c.fB, c.fA }; in onAppendStages()
/third_party/skia/src/shaders/gradients/
DSkGradientShader.cpp223 (ctx->fs[1])[stop] = Fs.fG; in add_stop_color()
228 (ctx->bs[1])[stop] = Bs.fG; in add_stop_color()
244 (c_r.fG - c_l.fG) * gapCount, in init_stop_evenly()
250 c_l.fG - Fs.fG*(stop/gapCount), in init_stop_evenly()
264 (c_r.fG - c_l.fG) / (t_r - t_l), in init_stop_pos()
270 c_l.fG - Fs.fG*t_l, in init_stop_pos()
324 : SkPMColor4f{ c.fR, c.fG, c.fB, c.fA }; in onAppendStages()
/third_party/skia/modules/sksg/src/
DSkSGColorFilter.cpp112 dG = c1.fG - c0.fG, in Make2ColorGradient()
145 dG*SK_LUM_COEFF_R, dG*SK_LUM_COEFF_G, dG*SK_LUM_COEFF_B, 0, c0.fG, in Make2ColorGradient()
/third_party/flutter/skia/modules/sksg/src/
DSkSGColorFilter.cpp112 dG = c1.fG - c0.fG, in Make2ColorGradient()
145 dG*SK_LUM_COEFF_R, dG*SK_LUM_COEFF_G, dG*SK_LUM_COEFF_B, 0, c0.fG, in Make2ColorGradient()
/third_party/flutter/skia/src/ports/
DSkScalerContext_win_dw.cpp1132 GrayscaleToA8<true>(src, glyph, fPreBlend.fG); in generateImage()
1134 GrayscaleToA8<false>(src, glyph, fPreBlend.fG); in generateImage()
1138 RGBToA8<true>(src, glyph, fPreBlend.fG); in generateImage()
1140 RGBToA8<false>(src, glyph, fPreBlend.fG); in generateImage()
1147 RGBToLcd16<true, false>(src, glyph, fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); in generateImage()
1149 RGBToLcd16<true, true>(src, glyph, fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); in generateImage()
1153 RGBToLcd16<false, false>(src, glyph, fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); in generateImage()
1155 RGBToLcd16<false, true>(src, glyph, fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); in generateImage()
/third_party/flutter/skia/src/gpu/
DGrDataUtils.cpp230 uint32_t g10 = SkScalarRoundToInt(colorf.fG * 1023.0f); in fill_buffer_with_color()
257 uint64_t gHalf = SkFloatToHalf(colorf.fG); in fill_buffer_with_color()
273 uint16_t g16 = SkScalarRoundToInt(colorf.fG * 65535.0f); in fill_buffer_with_color()
283 uint64_t g16 = SkScalarRoundToInt(colorf.fG * 65535.0f); in fill_buffer_with_color()
293 uint32_t gHalf = SkFloatToHalf(colorf.fG); in fill_buffer_with_color()
/third_party/flutter/skia/gm/
Dp3.cpp37 && fabsf(x.fG - y.fG) < K in nearly_equal()
43 return SkStringPrintf("%.2g %.2g %.2g %.2g", c.fR, c.fG, c.fB, c.fA); in fmt()

12345