Home
last modified time | relevance | path

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

12345678910

/external/skia/src/pdf/
DSkPDFGraphicState.cpp16 static const char* as_blend_mode(SkXfermode::Mode mode) { in as_blend_mode()
18 case SkXfermode::kSrcOver_Mode: in as_blend_mode()
20 case SkXfermode::kMultiply_Mode: in as_blend_mode()
22 case SkXfermode::kScreen_Mode: in as_blend_mode()
24 case SkXfermode::kOverlay_Mode: in as_blend_mode()
26 case SkXfermode::kDarken_Mode: in as_blend_mode()
28 case SkXfermode::kLighten_Mode: in as_blend_mode()
30 case SkXfermode::kColorDodge_Mode: in as_blend_mode()
32 case SkXfermode::kColorBurn_Mode: in as_blend_mode()
34 case SkXfermode::kHardLight_Mode: in as_blend_mode()
[all …]
/external/skia/bench/
DXfermodeBench.cpp19 XfermodeBench(SkXfermode::Mode mode, bool aa) { in XfermodeBench()
20 fXfermode.reset(SkXfermode::Create(mode)); in XfermodeBench()
22 SkASSERT(fXfermode.get() || SkXfermode::kSrcOver_Mode == mode); in XfermodeBench()
23 fName.printf("Xfermode_%s%s", SkXfermode::ModeName(mode), aa ? "_aa" : ""); in XfermodeBench()
26 XfermodeBench(SkXfermode* xferMode, const char* name, bool aa) { in XfermodeBench()
72 SkAutoTUnref<SkXfermode> fXfermode;
90 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in onDraw()
91 SkXfermode* xfer = SkXfermode::Create(SkXfermode::Mode(i)); in onDraw()
107 BENCH(SkXfermode::kClear_Mode)
108 BENCH(SkXfermode::kSrc_Mode)
[all …]
DXfer4fBench.cpp20 XferD32Bench(SkXfermode::Mode mode, const char name[], bool doN, uint32_t flags) in XferD32Bench()
24 fXfer.reset(SkXfermode::Create(mode)); in XferD32Bench()
26 fProc1 = SkXfermode::GetD32Proc(fXfer, fFlags | SkXfermode::kSrcIsSingle_D32Flag); in XferD32Bench()
27 fProcN = SkXfermode::GetD32Proc(fXfer, fFlags); in XferD32Bench()
32 (flags & SkXfermode::kSrcIsOpaque_D32Flag) ? "opaque" : "alpha", in XferD32Bench()
33 (flags & SkXfermode::kDstIsSRGB_D32Flag) ? "srgb" : "linear"); in XferD32Bench()
64 SkAutoTUnref<SkXfermode> fXfer;
66 SkXfermode::D32Proc fProc1;
67 SkXfermode::D32Proc fProcN;
83 #define F01 (SkXfermode::kSrcIsOpaque_D32Flag)
[all …]
DRotatedRectBench.cpp70 RotRectBench(bool aa, ColorType ct, SkXfermode::Mode mode) in RotRectBench()
147 fName.appendf("_%s", to_lower(SkXfermode::ModeName(fMode)).c_str()); in makeName()
152 SkXfermode::Mode fMode;
160 DEF_BENCH(return new RotRectBench(true, kConstantOpaque_ColorType, SkXfermode::kS…
161 DEF_BENCH(return new RotRectBench(true, kConstantTransparent_ColorType, SkXfermode::kS…
162 DEF_BENCH(return new RotRectBench(true, kChangingOpaque_ColorType, SkXfermode::kS…
163 DEF_BENCH(return new RotRectBench(true, kChangingTransparent_ColorType, SkXfermode::kS…
164 DEF_BENCH(return new RotRectBench(true, kAlternatingOpaqueAndTransparent_ColorType, SkXfermode::kS…
166 DEF_BENCH(return new RotRectBench(false, kConstantOpaque_ColorType, SkXfermode::kS…
167 DEF_BENCH(return new RotRectBench(false, kConstantTransparent_ColorType, SkXfermode::kS…
[all …]
DXferU64Bench.cpp20 XferD64Bench(SkXfermode::Mode mode, const char name[], bool doN, uint32_t flags) in XferD64Bench()
24 fXfer.reset(SkXfermode::Create(mode)); in XferD64Bench()
26 fProc1 = SkXfermode::GetD64Proc(fXfer, fFlags | SkXfermode::kSrcIsSingle_D64Flag); in XferD64Bench()
27 fProcN = SkXfermode::GetD64Proc(fXfer, fFlags); in XferD64Bench()
32 (flags & SkXfermode::kSrcIsOpaque_D64Flag) ? "opaque" : "alpha", in XferD64Bench()
33 (flags & SkXfermode::kDstIsFloat16_D64Flag) ? "f16" : "u16"); in XferD64Bench()
64 SkAutoTUnref<SkXfermode> fXfer;
66 SkXfermode::D64Proc fProc1;
67 SkXfermode::D64Proc fProcN;
83 #define F01 (SkXfermode::kSrcIsOpaque_D64Flag)
[all …]
/external/skia/gm/
Dlcdblendmodes.cpp82 SkAutoTUnref<SkXfermode> xfermode(SkXfermode::Create(SkXfermode::kSrcOver_Mode)); in onDraw()
89 SkXfermode::Mode fMode; in drawColumn()
92 { SkXfermode::kClear_Mode, "Clear" }, in drawColumn()
93 { SkXfermode::kSrc_Mode, "Src" }, in drawColumn()
94 { SkXfermode::kDst_Mode, "Dst" }, in drawColumn()
95 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in drawColumn()
96 { SkXfermode::kDstOver_Mode, "DstOver" }, in drawColumn()
97 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in drawColumn()
98 { SkXfermode::kDstIn_Mode, "DstIn" }, in drawColumn()
99 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in drawColumn()
[all …]
Dcolortypexfermode.cpp69 SkXfermode::Mode fMode; in onDraw()
72 { SkXfermode::kClear_Mode, "Clear" }, in onDraw()
73 { SkXfermode::kSrc_Mode, "Src" }, in onDraw()
74 { SkXfermode::kDst_Mode, "Dst" }, in onDraw()
75 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in onDraw()
76 { SkXfermode::kDstOver_Mode, "DstOver" }, in onDraw()
77 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in onDraw()
78 { SkXfermode::kDstIn_Mode, "DstIn" }, in onDraw()
79 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in onDraw()
80 { SkXfermode::kDstOut_Mode, "DstOut" }, in onDraw()
[all …]
Dxfermodeimagefilter.cpp52 SkXfermode::Mode fMode; in onDraw()
55 { SkXfermode::kClear_Mode, "Clear" }, in onDraw()
56 { SkXfermode::kSrc_Mode, "Src" }, in onDraw()
57 { SkXfermode::kDst_Mode, "Dst" }, in onDraw()
58 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in onDraw()
59 { SkXfermode::kDstOver_Mode, "DstOver" }, in onDraw()
60 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in onDraw()
61 { SkXfermode::kDstIn_Mode, "DstIn" }, in onDraw()
62 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in onDraw()
63 { SkXfermode::kDstOut_Mode, "DstOut" }, in onDraw()
[all …]
Ddrawatlascolor.cpp29 paint.setXfermode(SkXfermode::Create(SkXfermode::kSrc_Mode)); in make_atlas()
80 SkXfermode::Mode fMode; in onDraw()
83 { SkXfermode::kClear_Mode, "Clear" }, in onDraw()
84 { SkXfermode::kSrc_Mode, "Src" }, in onDraw()
85 { SkXfermode::kDst_Mode, "Dst" }, in onDraw()
86 { SkXfermode::kSrcOver_Mode, "SrcOver" }, in onDraw()
87 { SkXfermode::kDstOver_Mode, "DstOver" }, in onDraw()
88 { SkXfermode::kSrcIn_Mode, "SrcIn" }, in onDraw()
89 { SkXfermode::kDstIn_Mode, "DstIn" }, in onDraw()
90 { SkXfermode::kSrcOut_Mode, "SrcOut" }, in onDraw()
[all …]
Dxfermodes.cpp27 static SkXfermode* make_custom(int customMode) { in make_custom()
70 SkXfermode::Mode fMode;
79 { SkXfermode::kClear_Mode, "Clear", kAll_SrcType },
80 { SkXfermode::kSrc_Mode, "Src", kAll_SrcType },
81 { SkXfermode::kDst_Mode, "Dst", kAll_SrcType },
82 { SkXfermode::kSrcOver_Mode, "SrcOver", kAll_SrcType },
83 { SkXfermode::kDstOver_Mode, "DstOver", kAll_SrcType },
84 { SkXfermode::kSrcIn_Mode, "SrcIn", kAll_SrcType },
85 { SkXfermode::kDstIn_Mode, "DstIn", kAll_SrcType },
86 { SkXfermode::kSrcOut_Mode, "SrcOut", kAll_SrcType },
[all …]
Dlcdoverlap.cpp52 void drawTestCase(SkCanvas* canvas, SkScalar x, SkScalar y, SkXfermode::Mode mode, in drawTestCase()
53 SkXfermode::Mode mode2) { in drawTestCase()
63 SkAutoTUnref<SkXfermode> xfermode(SkXfermode::Create(mode)); in drawTestCase()
64 SkAutoTUnref<SkXfermode> xfermode2(SkXfermode::Create(mode2)); in drawTestCase()
82 drawTestCase(canvas, offsetX, offsetY, SkXfermode::kSrc_Mode, SkXfermode::kSrc_Mode); in onDraw()
83 drawTestCase(canvas, 3 * offsetX, offsetY, SkXfermode::kSrcOver_Mode, in onDraw()
84 SkXfermode::kSrcOver_Mode); in onDraw()
85 drawTestCase(canvas, offsetX, 3 * offsetY, SkXfermode::kHardLight_Mode, in onDraw()
86 SkXfermode::kLuminosity_Mode); in onDraw()
87 drawTestCase(canvas, 3 * offsetX, 3 * offsetY, SkXfermode::kSrcOver_Mode, in onDraw()
[all …]
Dhairmodes.cpp14 SkXfermode::Mode fMode;
17 { SkXfermode::kClear_Mode, "Clear" },
18 { SkXfermode::kSrc_Mode, "Src" },
19 { SkXfermode::kDst_Mode, "Dst" },
20 { SkXfermode::kSrcOver_Mode, "SrcOver" },
21 { SkXfermode::kDstOver_Mode, "DstOver" },
22 { SkXfermode::kSrcIn_Mode, "SrcIn" },
23 { SkXfermode::kDstIn_Mode, "DstIn" },
24 { SkXfermode::kSrcOut_Mode, "SrcOut" },
25 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
Dmodecolorfilters.cpp82 bgPaint.setXfermodeMode(SkXfermode::kSrc_Mode); in onDraw()
103 SkXfermode::Mode modes[] = { // currently just doing the Modes expressible as Coeffs in onDraw()
104 SkXfermode::kClear_Mode, in onDraw()
105 SkXfermode::kSrc_Mode, in onDraw()
106 SkXfermode::kDst_Mode, in onDraw()
107 SkXfermode::kSrcOver_Mode, in onDraw()
108 SkXfermode::kDstOver_Mode, in onDraw()
109 SkXfermode::kSrcIn_Mode, in onDraw()
110 SkXfermode::kDstIn_Mode, in onDraw()
111 SkXfermode::kSrcOut_Mode, in onDraw()
[all …]
Daarectmodes.cpp62 SkXfermode::Mode fMode;
65 { SkXfermode::kClear_Mode, "Clear" },
66 { SkXfermode::kSrc_Mode, "Src" },
67 { SkXfermode::kDst_Mode, "Dst" },
68 { SkXfermode::kSrcOver_Mode, "SrcOver" },
69 { SkXfermode::kDstOver_Mode, "DstOver" },
70 { SkXfermode::kSrcIn_Mode, "SrcIn" },
71 { SkXfermode::kDstIn_Mode, "DstIn" },
72 { SkXfermode::kSrcOut_Mode, "SrcOut" },
73 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
/external/skia/tests/
DXfermodeTest.cpp12 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) { in test_asMode()
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode); in test_asMode()
18 SkXfermode::Mode reportedMode = ILLEGAL_MODE; in test_asMode()
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode)); in test_asMode()
27 reportedMode = (SkXfermode::Mode) -1; in test_asMode()
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(nullptr, in test_IsMode()
39 SkXfermode::kSrcOver_Mode)); in test_IsMode()
41 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in test_IsMode()
[all …]
/external/skia/src/core/
DSkModeColorFilter.cpp26 str->append(SkXfermode::ModeName(fMode)); in toString()
30 bool SkModeColorFilter::asColorMode(SkColor* color, SkXfermode::Mode* mode) const { in asColorMode()
43 case SkXfermode::kDst_Mode: //!< [Da, Dc] in getFlags()
44 case SkXfermode::kSrcATop_Mode: //!< [Da, Sc * Da + (1 - Sa) * Dc] in getFlags()
63 SkXfermodeProc4f proc = SkXfermode::GetProc4f(fMode); in filterSpan4f()
77 fProc = SkXfermode::GetProc(fMode); in updateCache()
82 SkXfermode::Mode mode = (SkXfermode::Mode)buffer.readUInt(); in CreateProc()
95 if (SkXfermode::kDst_Mode == fMode) { in asFragmentProcessor()
110 if (fMode <= SkXfermode::kLastCoeffMode) { in asFragmentProcessor()
127 Src_SkModeColorFilter(SkColor color) : INHERITED(color, SkXfermode::kSrc_Mode) {} in Src_SkModeColorFilter()
[all …]
DSkXfermodeInterpretation.cpp18 const SkXfermode* xfer = paint.getXfermode(); in SkInterpretXfermode()
19 SkXfermode::Mode mode; in SkInterpretXfermode()
20 if (!SkXfermode::AsMode(xfer, &mode)) { in SkInterpretXfermode()
24 case SkXfermode::kSrcOver_Mode: in SkInterpretXfermode()
26 case SkXfermode::kSrc_Mode: in SkInterpretXfermode()
31 case SkXfermode::kDst_Mode: in SkInterpretXfermode()
33 case SkXfermode::kDstOver_Mode: in SkInterpretXfermode()
38 case SkXfermode::kSrcIn_Mode: in SkInterpretXfermode()
43 case SkXfermode::kDstIn_Mode: in SkInterpretXfermode()
/external/skia/src/c/
Dsk_paint.cpp133 SkXfermode::Mode skmode; in sk_paint_set_xfermode_mode()
136 MAP( CLEAR_SK_XFERMODE_MODE, SkXfermode::kClear_Mode ); in sk_paint_set_xfermode_mode()
137 MAP( SRC_SK_XFERMODE_MODE, SkXfermode::kSrc_Mode ); in sk_paint_set_xfermode_mode()
138 MAP( DST_SK_XFERMODE_MODE, SkXfermode::kDst_Mode ); in sk_paint_set_xfermode_mode()
139 MAP( SRCOVER_SK_XFERMODE_MODE, SkXfermode::kSrcOver_Mode ); in sk_paint_set_xfermode_mode()
140 MAP( DSTOVER_SK_XFERMODE_MODE, SkXfermode::kDstOver_Mode ); in sk_paint_set_xfermode_mode()
141 MAP( SRCIN_SK_XFERMODE_MODE, SkXfermode::kSrcIn_Mode ); in sk_paint_set_xfermode_mode()
142 MAP( DSTIN_SK_XFERMODE_MODE, SkXfermode::kDstIn_Mode ); in sk_paint_set_xfermode_mode()
143 MAP( SRCOUT_SK_XFERMODE_MODE, SkXfermode::kSrcOut_Mode ); in sk_paint_set_xfermode_mode()
144 MAP( DSTOUT_SK_XFERMODE_MODE, SkXfermode::kDstOut_Mode ); in sk_paint_set_xfermode_mode()
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLBlend.cpp240 SkXfermode::Mode mode) { in emit_advanced_xfermode_code()
249 case SkXfermode::kOverlay_Mode: in emit_advanced_xfermode_code()
253 case SkXfermode::kDarken_Mode: in emit_advanced_xfermode_code()
260 case SkXfermode::kLighten_Mode: in emit_advanced_xfermode_code()
267 case SkXfermode::kColorDodge_Mode: in emit_advanced_xfermode_code()
272 case SkXfermode::kColorBurn_Mode: in emit_advanced_xfermode_code()
277 case SkXfermode::kHardLight_Mode: in emit_advanced_xfermode_code()
280 case SkXfermode::kSoftLight_Mode: in emit_advanced_xfermode_code()
289 case SkXfermode::kDifference_Mode: in emit_advanced_xfermode_code()
295 case SkXfermode::kExclusion_Mode: in emit_advanced_xfermode_code()
[all …]
/external/skia/src/gpu/effects/
DGrCustomXfermode.cpp27 bool GrCustomXfermode::IsSupportedMode(SkXfermode::Mode mode) { in IsSupportedMode()
28 return mode > SkXfermode::kLastCoeffMode && mode <= SkXfermode::kLastMode; in IsSupportedMode()
35 static GrBlendEquation hw_blend_equation(SkXfermode::Mode mode) { in hw_blend_equation()
36 enum { kOffset = kOverlay_GrBlendEquation - SkXfermode::kOverlay_Mode }; in hw_blend_equation()
39 GR_STATIC_ASSERT(kOverlay_GrBlendEquation == SkXfermode::kOverlay_Mode + kOffset); in hw_blend_equation()
40 GR_STATIC_ASSERT(kDarken_GrBlendEquation == SkXfermode::kDarken_Mode + kOffset); in hw_blend_equation()
41 GR_STATIC_ASSERT(kLighten_GrBlendEquation == SkXfermode::kLighten_Mode + kOffset); in hw_blend_equation()
42 GR_STATIC_ASSERT(kColorDodge_GrBlendEquation == SkXfermode::kColorDodge_Mode + kOffset); in hw_blend_equation()
43 GR_STATIC_ASSERT(kColorBurn_GrBlendEquation == SkXfermode::kColorBurn_Mode + kOffset); in hw_blend_equation()
44 GR_STATIC_ASSERT(kHardLight_GrBlendEquation == SkXfermode::kHardLight_Mode + kOffset); in hw_blend_equation()
[all …]
DGrXfermodeFragmentProcessor.cpp21 SkXfermode::Mode mode) in ComposeTwoFragmentProcessor()
36 SkXfermode::Mode getMode() const { return fMode; } in getMode()
51 SkXfermode::Mode fMode;
77 SkXfermode::Mode mode = static_cast<SkXfermode::Mode>( in TestCreate()
78 d->fRandom->nextRangeU(0, SkXfermode::kLastMode)); in TestCreate()
107 SkXfermode::Mode mode = cs.getMode(); in emitCode()
108 fragBuilder->codeAppendf("// Compose Xfer Mode: %s\n", SkXfermode::ModeName(mode)); in emitCode()
122 const GrFragmentProcessor* src, const GrFragmentProcessor* dst, SkXfermode::Mode mode) { in CreateFromTwoProcessors()
124 case SkXfermode::kClear_Mode: in CreateFromTwoProcessors()
127 case SkXfermode::kSrc_Mode: in CreateFromTwoProcessors()
[all …]
/external/skia/samplecode/
DSampleAARectModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
DSampleHairModes.cpp16 SkXfermode::Mode fMode;
19 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" },
22 { SkXfermode::kSrcOver_Mode, "SrcOver" },
23 { SkXfermode::kDstOver_Mode, "DstOver" },
24 { SkXfermode::kSrcIn_Mode, "SrcIn" },
25 { SkXfermode::kDstIn_Mode, "DstIn" },
26 { SkXfermode::kSrcOut_Mode, "SrcOut" },
27 { SkXfermode::kDstOut_Mode, "DstOut" },
[all …]
DSampleColorFilter.cpp105 paint.setXfermodeMode(SkXfermode::kSrc_Mode); in createBitmap()
160 static const SkXfermode::Mode gModes[] = { in onDrawContent()
161 SkXfermode::kClear_Mode, in onDrawContent()
162 SkXfermode::kSrc_Mode, in onDrawContent()
163 SkXfermode::kDst_Mode, in onDrawContent()
164 SkXfermode::kSrcOver_Mode, in onDrawContent()
165 SkXfermode::kDstOver_Mode, in onDrawContent()
166 SkXfermode::kSrcIn_Mode, in onDrawContent()
167 SkXfermode::kDstIn_Mode, in onDrawContent()
168 SkXfermode::kSrcOut_Mode, in onDrawContent()
[all …]
/external/skia/src/gpu/
DSkGrPriv.h73 SkXfermode::Mode primColorMode,
83 return SkPaintToGrPaintWithXfermode(context, skPaint, SkMatrix::I(), SkXfermode::kDst_Mode, in SkPaintToGrPaintWithPrimitiveColor()
124 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkXfermode::kZero_Coeff);
125 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkXfermode::kOne_Coeff);
126 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkXfermode::kSC_Coeff);
127 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff);
128 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff);
129 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff);
130 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff);
131 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff);
[all …]

12345678910