Home
last modified time | relevance | path

Searched refs:SkXfermode (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/core/
DSkXfermodePriv.h37 class SK_API SkXfermode : public SkFlattenable {
133 static bool AsMode(const SkXfermode*, Mode* mode);
134 static bool AsMode(const sk_sp<SkXfermode>& xfer, Mode* mode) { in AsMode()
148 static bool IsMode(const SkXfermode* xfer, Mode mode);
149 static bool IsMode(const sk_sp<SkXfermode>& xfer, Mode mode) { in IsMode()
155 static sk_sp<SkXfermode> Make(SkBlendMode);
156 static sk_sp<SkXfermode> Make(Mode m) { return Make((SkBlendMode)m); } in Make()
163 static SkXfermode* Peek(SkBlendMode mode) { in Peek()
164 sk_sp<SkXfermode> xfer = Make(mode); in Peek()
202 static bool SupportsCoverageAsAlpha(const SkXfermode* xfer);
[all …]
DSkXfermode_proccoeff.h17 SkXfermode::Coeff fSC;
18 SkXfermode::Coeff fDC;
21 #define CANNOT_USE_COEFF SkXfermode::Coeff(-1)
23 class SK_API SkProcCoeffXfermode : public SkXfermode {
44 bool isOpaque(SkXfermode::SrcColorOpacity opacityType) const override;
67 friend class SkXfermode; variable
69 typedef SkXfermode INHERITED;
DSkXfermode.cpp957 …{ clear_modeproc, proc_4f<clear_4f>, SkXfermode::kZero_Coeff, SkXfermode::kZero_Coef…
958 …{ src_modeproc, proc_4f<src_4f>, SkXfermode::kOne_Coeff, SkXfermode::kZero_Coef…
959 …{ dst_modeproc, proc_4f<dst_4f>, SkXfermode::kZero_Coeff, SkXfermode::kOne_Coeff…
960 …{ srcover_modeproc, proc_4f<srcover_4f>, SkXfermode::kOne_Coeff, SkXfermode::kISA_Coeff…
961 …{ dstover_modeproc, proc_4f<dstover_4f>, SkXfermode::kIDA_Coeff, SkXfermode::kOne_Coeff…
962 …{ srcin_modeproc, proc_4f<srcin_4f>, SkXfermode::kDA_Coeff, SkXfermode::kZero_Coef…
963 …{ dstin_modeproc, proc_4f<dstin_4f>, SkXfermode::kZero_Coeff, SkXfermode::kSA_Coeff …
964 …{ srcout_modeproc, proc_4f<srcout_4f>, SkXfermode::kIDA_Coeff, SkXfermode::kZero_Coef…
965 …{ dstout_modeproc, proc_4f<dstout_4f>, SkXfermode::kZero_Coeff, SkXfermode::kISA_Coeff…
966 …{ srcatop_modeproc, proc_4f<srcatop_4f>, SkXfermode::kDA_Coeff, SkXfermode::kISA_Coeff…
[all …]
DSkPaintPriv.cpp28 SkXfermode::SrcColorOpacity opacityType = SkXfermode::kUnknown_SrcColorOpacity; in Overwrites()
35 opacityType = SkXfermode::kOpaque_SrcColorOpacity; in Overwrites()
38 opacityType = SkXfermode::kTransparentBlack_SrcColorOpacity; in Overwrites()
40 opacityType = SkXfermode::kTransparentAlpha_SrcColorOpacity; in Overwrites()
45 return SkXfermode::IsOpaque(paint->getBlendMode(), opacityType); in Overwrites()
DSkBlitter_PM4f.cpp88 auto proc = fState.getLCDProc(SkXfermode::kSrcIsSingle_LCDFlag); in blitLCDMask()
350 SkXfermode::D32Proc fProc1;
351 SkXfermode::D32Proc fProcN;
357 fFlags |= SkXfermode::kSrcIsOpaque_D32Flag; in State32()
360 fFlags |= SkXfermode::kDstIsSRGB_D32Flag; in State32()
362 fProc1 = SkXfermode::GetD32Proc(fMode, fFlags | SkXfermode::kSrcIsSingle_D32Flag); in State32()
363 fProcN = SkXfermode::GetD32Proc(fMode, fFlags); in State32()
366 SkXfermode::LCD32Proc getLCDProc(uint32_t oneOrManyFlag) const { in getLCDProc()
368 if (fFlags & SkXfermode::kDstIsSRGB_D32Flag) { in getLCDProc()
369 flags |= SkXfermode::kDstIsSRGB_LCDFlag; in getLCDProc()
[all …]
DSkSpriteBlitter4f.cpp40 flags |= SkXfermode::kSrcIsOpaque_F16Flag; in Sprite_F16()
42 fWriter = SkXfermode::GetF16Proc(fMode, flags); in Sprite_F16()
59 SkXfermode::F16Proc fWriter;
87 uint32_t flags = SkXfermode::kDstIsSRGB_D32Flag; in Sprite_sRGB()
89 flags |= SkXfermode::kSrcIsOpaque_D32Flag; in Sprite_sRGB()
91 fWriter = SkXfermode::GetD32Proc(fMode, flags); in Sprite_sRGB()
108 SkXfermode::D32Proc fWriter;
DSkColorShader.cpp251 SkXfermode::D32Proc proc = (SkXfermode::D32Proc)state->fStorage[0]; in D32_BlitBW()
258 SkXfermode::D32Proc proc = (SkXfermode::D32Proc)state->fStorage[0]; in D32_BlitAA()
265 SkXfermode::F16Proc proc = (SkXfermode::F16Proc)state->fStorage[0]; in F16_BlitBW()
272 SkXfermode::F16Proc proc = (SkXfermode::F16Proc)state->fStorage[0]; in F16_BlitAA()
279 uint32_t flags = SkXfermode::kSrcIsSingle_D32Flag; in choose_blitprocs()
281 flags |= SkXfermode::kSrcIsOpaque_D32Flag; in choose_blitprocs()
286 flags |= SkXfermode::kDstIsSRGB_D32Flag; in choose_blitprocs()
288 state->fStorage[0] = (void*)SkXfermode::GetD32Proc(state->fMode, flags); in choose_blitprocs()
294 state->fStorage[0] = (void*)SkXfermode::GetF16Proc(state->fMode, flags); in choose_blitprocs()
DSkXfermodeF16.cpp21 SkXfermodeProc4f proc = SkXfermode::GetProc4f(mode); in xfer_1()
41 SkXfermodeProc4f proc = SkXfermode::GetProc4f(mode); in xfer_n()
59 const SkXfermode::F16Proc gProcs_General[] = { xfer_n, xfer_n, xfer_1, xfer_1 };
76 const SkXfermode::F16Proc gProcs_Clear[] = { clear, clear, clear, clear };
109 const SkXfermode::F16Proc gProcs_Src[] = { src_n, src_n, src_1, src_1 };
115 const SkXfermode::F16Proc gProcs_Dst[] = { dst, dst, dst, dst };
147 const SkXfermode::F16Proc gProcs_SrcOver[] = { srcover_n, src_n, srcover_1, src_1 };
151 SkXfermode::F16Proc SkXfermode::GetF16Proc(SkBlendMode mode, uint32_t flags) { in GetF16Proc()
DSkXfermode4f.cpp79 SkXfermodeProc4f proc = SkXfermode::GetProc4f(mode); in general_1()
99 SkXfermodeProc4f proc = SkXfermode::GetProc4f(mode); in general_n()
117 const SkXfermode::D32Proc gProcs_General[] = {
158 const SkXfermode::D32Proc gProcs_Clear[] = {
218 const SkXfermode::D32Proc gProcs_Src[] = {
229 const SkXfermode::D32Proc gProcs_Dst[] = {
352 const SkXfermode::D32Proc gProcs_SrcOver[] = {
362 SkXfermode::D32Proc SkXfermode::GetD32Proc(SkBlendMode mode, uint32_t flags) { in GetD32Proc()
449 SkXfermode::LCD32Proc SkXfermode::GetLCD32Proc(uint32_t flags) { in GetLCD32Proc()
DSkValidationUtils.h17 static inline bool SkIsValidCoeff(SkXfermode::Coeff coeff) { in SkIsValidCoeff()
18 return coeff >= 0 && coeff < SkXfermode::kCoeffCount; in SkIsValidCoeff()
DSkComposeShader.cpp55 sk_sp<SkXfermode> xfer = buffer.readXfermode(); in CreateProc()
128 SkXfermode* xfer = SkXfermode::Peek(mode); in shadeSpan()
223 str->appendf(" Xfermode: %s", SkXfermode::ModeName(fMode)); in toString()
DSkBlitter_ARGB32.cpp338 fXfermode = SkXfermode::Peek(paint.getBlendMode()); in SkARGB32_Shader_Blitter()
355 SkXfermode::Mode mode; in SkARGB32_Shader_Blitter()
357 if (SkXfermode::kSrc_Mode == mode) { in SkARGB32_Shader_Blitter()
409 SkXfermode* xfer = fXfermode; in blitRect()
445 SkXfermode* xfer = fXfermode; in blitRect()
473 SkXfermode* xfer = fXfermode; in blitAntiH()
578 SkXfermode* xfer = fXfermode; in blitMask()
621 SkXfermode* xfer = fXfermode; in blitV()
675 SkXfermode* xfer = fXfermode; in blitV()
DSkModeColorFilter.cpp31 str->append(SkXfermode::ModeName(fMode)); in toString()
67 SkXfermodeProc4f proc = SkXfermode::GetProc4f(fMode); in filterSpan4f()
81 fProc = SkXfermode::GetProc(fMode); in updateCache()
DSkSpriteBlitter_ARGB32.cpp67 fXfermode = SkXfermode::Peek(paint.getBlendMode()); in Sprite_D32_XferFilter()
102 SkXfermode* fXfermode;
126 SkXfermode* xfermode = fXfermode; in blitRect()
173 SkXfermode* xfermode = fXfermode; in blitRect()
/external/skia/src/gpu/glsl/
DGrGLSLBlend.cpp373 static bool append_porterduff_term(GrGLSLFragmentBuilder* fsBuilder, SkXfermode::Coeff coeff, in append_porterduff_term()
376 if (SkXfermode::kZero_Coeff == coeff) { in append_porterduff_term()
384 case SkXfermode::kOne_Coeff: in append_porterduff_term()
386 case SkXfermode::kSC_Coeff: in append_porterduff_term()
389 case SkXfermode::kISC_Coeff: in append_porterduff_term()
392 case SkXfermode::kDC_Coeff: in append_porterduff_term()
395 case SkXfermode::kIDC_Coeff: in append_porterduff_term()
398 case SkXfermode::kSA_Coeff: in append_porterduff_term()
401 case SkXfermode::kISA_Coeff: in append_porterduff_term()
404 case SkXfermode::kDA_Coeff: in append_porterduff_term()
[all …]
/external/skia/bench/
DXfer4fBench.cpp25 fProc1 = SkXfermode::GetD32Proc(fMode, fFlags | SkXfermode::kSrcIsSingle_D32Flag); in XferD32Bench()
26 fProcN = SkXfermode::GetD32Proc(fMode, fFlags); in XferD32Bench()
31 (flags & SkXfermode::kSrcIsOpaque_D32Flag) ? "opaque" : "alpha", in XferD32Bench()
32 (flags & SkXfermode::kDstIsSRGB_D32Flag) ? "srgb" : "linear"); in XferD32Bench()
65 SkXfermode::D32Proc fProc1;
66 SkXfermode::D32Proc fProcN;
82 #define F01 (SkXfermode::kSrcIsOpaque_D32Flag)
83 #define F10 (SkXfermode::kDstIsSRGB_D32Flag)
84 #define F11 (SkXfermode::kSrcIsOpaque_D32Flag | SkXfermode::kDstIsSRGB_D32Flag)
DXferF16Bench.cpp25 fProc1 = SkXfermode::GetF16Proc(mode, fFlags | SkXfermode::kSrcIsSingle_F16Flag); in XferF16Bench()
26 fProcN = SkXfermode::GetF16Proc(mode, fFlags); in XferF16Bench()
31 (flags & SkXfermode::kSrcIsOpaque_F16Flag) ? "opaque" : "alpha"); in XferF16Bench()
64 SkXfermode::F16Proc fProc1;
65 SkXfermode::F16Proc fProcN;
81 #define F01 (SkXfermode::kSrcIsOpaque_F16Flag)
/external/skia/src/effects/
DSkArithmeticMode.cpp14 class SkArithmeticMode_scalar : public SkXfermode {
50 typedef SkXfermode INHERITED;
70 sk_sp<SkXfermode> SkArithmeticMode::Make(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4, in Make()
74 return SkXfermode::Make(SkXfermode::kSrc_Mode); in Make()
77 return SkXfermode::Make(SkXfermode::kDst_Mode); in Make()
DSkArithmeticModePriv.h14 class SkXfermode; variable
32 static sk_sp<SkXfermode> Make(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
DSkXfermodeImageFilter.cpp88 sk_sp<SkXfermode> xfer = buffer.readXfermode(); in unflatten_blendmode()
319 SkXfermode* xfer = SkXfermode::Peek(fMode); in makeFGFrag()
320 sk_sp<SkXfermode> srcover; in makeFGFrag()
326 rec.fProc = SkXfermode::GetProc(SkBlendMode::kSrcOver); in makeFGFrag()
327 SkXfermode::ModeAsCoeff(SkBlendMode::kSrcOver, &rec.fSC, &rec.fDC); in makeFGFrag()
/external/skia/src/gpu/
DSkGr.h182 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkXfermode::kZero_Coeff);
183 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkXfermode::kOne_Coeff);
184 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkXfermode::kSC_Coeff);
185 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff);
186 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff);
187 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff);
188 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff);
189 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff);
190 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff);
191 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
[all …]
/external/skia/tests/
DGrGetCoeffBlendKnownComponentsTest.cpp26 static GrColor make_baseline_color(GrColor src, GrColor dst, const SkXfermode* xm) { in make_baseline_color()
40 for (int i = 0; i < SkXfermode::kLastCoeffMode; ++i) { in DEF_TEST()
41 SkXfermode::Mode mode = (SkXfermode::Mode)i; in DEF_TEST()
42 auto xm(SkXfermode::Make(mode)); in DEF_TEST()
43 SkXfermode::Coeff srcCoeff, dstCoeff; in DEF_TEST()
44 SkAssertResult(SkXfermode::ModeAsCoeff(mode, &srcCoeff, &dstCoeff)); in DEF_TEST()
/external/skia/site/user/api/
Dskpaint.md10 <li><a href="#SkXfermode">SkXfermode</a></li>
72 * **SkXfermode** - e.g. porter-duff transfermodes, blend modes
86 <span id="SkXfermode"></span>
88 SkXfermode section in SkPaint
/external/skia/src/utils/
DSkShadowPaintFilterCanvas.h84 const SkColor colors[], SkXfermode *xmode,
89 const SkPoint texCoords[], SkXfermode *xmode,
/external/skia/src/gpu/effects/
DGrXfermodeFragmentProcessor.cpp145 auto proc = SkXfermode::GetProc4f(fMode); in constantOutputForConstantInput()
213 fragBuilder->codeAppendf("// Compose Xfer Mode: %s\n", SkXfermode::ModeName(mode)); in emitCode()
393 auto proc = SkXfermode::GetProc4f(fMode); in constantOutputForConstantInput()
428 fragBuilder->codeAppendf("// Compose Xfer Mode: %s\n", SkXfermode::ModeName(mode)); in emitCode()

12