Home
last modified time | relevance | path

Searched refs:SkBlendMode (Results 1 – 25 of 675) sorted by relevance

12345678910>>...27

/external/skia/src/gpu/glsl/
DGrGLSLBlend.cpp14 const char* BlendFuncName(SkBlendMode mode) { in BlendFuncName()
16 case SkBlendMode::kClear: return "blend_clear"; in BlendFuncName()
17 case SkBlendMode::kSrc: return "blend_src"; in BlendFuncName()
18 case SkBlendMode::kDst: return "blend_dst"; in BlendFuncName()
19 case SkBlendMode::kSrcOver: return "blend_src_over"; in BlendFuncName()
20 case SkBlendMode::kDstOver: return "blend_dst_over"; in BlendFuncName()
21 case SkBlendMode::kSrcIn: return "blend_src_in"; in BlendFuncName()
22 case SkBlendMode::kDstIn: return "blend_dst_in"; in BlendFuncName()
23 case SkBlendMode::kSrcOut: return "blend_src_out"; in BlendFuncName()
24 case SkBlendMode::kDstOut: return "blend_dst_out"; in BlendFuncName()
[all …]
/external/skqp/src/core/
DSkBlendMode.cpp12 bool SkBlendMode_ShouldPreScaleCoverage(SkBlendMode mode, bool rgb_coverage) { in SkBlendMode_ShouldPreScaleCoverage()
27 case SkBlendMode::kDst: // d --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
28 case SkBlendMode::kDstOver: // d + s*inv(da) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
29 case SkBlendMode::kPlus: // clamp(s+d) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
32 case SkBlendMode::kDstOut: // d * inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
33 case SkBlendMode::kSrcATop: // s*da + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
34 case SkBlendMode::kSrcOver: // s + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
35 case SkBlendMode::kXor: // s*inv(da) + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
44 bool SkBlendMode_SupportsCoverageAsAlpha(SkBlendMode mode) { in SkBlendMode_SupportsCoverageAsAlpha()
72 bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff* src, SkBlendModeCoeff* dst) { in SkBlendMode_AsCoeff()
[all …]
DSkModeColorFilter.cpp27 SkModeColorFilter::SkModeColorFilter(SkColor color, SkBlendMode mode) { in SkModeColorFilter()
32 bool SkModeColorFilter::asColorMode(SkColor* color, SkBlendMode* mode) const { in asColorMode()
45 case SkBlendMode::kDst: //!< [Da, Dc] in getFlags()
46 case SkBlendMode::kSrcATop: //!< [Da, Sc * Da + (1 - Sa) * Dc] in getFlags()
61 SkBlendMode mode = (SkBlendMode)buffer.readUInt(); in CreateProc()
94 if (SkBlendMode::kDst == fMode) { in asFragmentProcessor()
107 if ((unsigned)fMode <= (unsigned)SkBlendMode::kLastCoeffMode) { in asFragmentProcessor()
118 sk_sp<SkColorFilter> SkColorFilter::MakeModeFilter(SkColor color, SkBlendMode mode) { in MakeModeFilter()
127 if (SkBlendMode::kClear == mode) { in MakeModeFilter()
129 mode = SkBlendMode::kSrc; in MakeModeFilter()
[all …]
/external/skia/src/core/
DSkBlendMode.cpp12 bool SkBlendMode_ShouldPreScaleCoverage(SkBlendMode mode, bool rgb_coverage) { in SkBlendMode_ShouldPreScaleCoverage()
27 case SkBlendMode::kDst: // d --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
28 case SkBlendMode::kDstOver: // d + s*inv(da) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
29 case SkBlendMode::kPlus: // clamp(s+d) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
32 case SkBlendMode::kDstOut: // d * inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
33 case SkBlendMode::kSrcATop: // s*da + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
34 case SkBlendMode::kSrcOver: // s + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
35 case SkBlendMode::kXor: // s*inv(da) + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
44 bool SkBlendMode_SupportsCoverageAsAlpha(SkBlendMode mode) { in SkBlendMode_SupportsCoverageAsAlpha()
72 bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff* src, SkBlendModeCoeff* dst) { in SkBlendMode_AsCoeff()
[all …]
DSkModeColorFilter.cpp25 SkModeColorFilter::SkModeColorFilter(SkColor color, SkBlendMode mode) { in SkModeColorFilter()
30 bool SkModeColorFilter::onAsAColorMode(SkColor* color, SkBlendMode* mode) const { in onAsAColorMode()
43 case SkBlendMode::kDst: //!< [Da, Dc] in getFlags()
44 case SkBlendMode::kSrcATop: //!< [Da, Sc * Da + (1 - Sa) * Dc] in getFlags()
59 SkBlendMode mode = (SkBlendMode)buffer.readUInt(); in CreateProc()
82 if (SkBlendMode::kDst == fMode) { in asFragmentProcessor()
95 if ((unsigned)fMode <= (unsigned)SkBlendMode::kLastCoeffMode) { in asFragmentProcessor()
106 sk_sp<SkColorFilter> SkColorFilters::Blend(SkColor color, SkBlendMode mode) { in Blend()
115 if (SkBlendMode::kClear == mode) { in Blend()
117 mode = SkBlendMode::kSrc; in Blend()
[all …]
/external/skia/src/gpu/effects/
DGrXfermodeFragmentProcessor.cpp20 static inline bool does_cpu_blend_impl_match_gpu(SkBlendMode mode) { in does_cpu_blend_impl_match_gpu()
24 return mode <= SkBlendMode::kLastSeparableMode && mode != SkBlendMode::kSoftLight && in does_cpu_blend_impl_match_gpu()
25 mode != SkBlendMode::kColorBurn; in does_cpu_blend_impl_match_gpu()
34 SkBlendMode mode) { in Make()
57 SkBlendMode getMode() const { return fMode; } in getMode()
62 SkBlendMode mode) in ComposeTwoFragmentProcessor()
72 const GrFragmentProcessor* dst, SkBlendMode mode) { in OptFlags()
75 case SkBlendMode::kClear: in OptFlags()
76 case SkBlendMode::kSrc: in OptFlags()
77 case SkBlendMode::kDst: in OptFlags()
[all …]
DGrCustomXfermode.cpp23 bool GrCustomXfermode::IsSupportedMode(SkBlendMode mode) { in IsSupportedMode()
24 return (int)mode > (int)SkBlendMode::kLastCoeffMode && in IsSupportedMode()
25 (int)mode <= (int)SkBlendMode::kLastMode; in IsSupportedMode()
32 static constexpr GrBlendEquation hw_blend_equation(SkBlendMode mode) { in hw_blend_equation()
34 #define EQ_OFFSET (kOverlay_GrBlendEquation - (int)SkBlendMode::kOverlay) in hw_blend_equation()
35 static_assert(kOverlay_GrBlendEquation == (int)SkBlendMode::kOverlay + EQ_OFFSET); in hw_blend_equation()
36 static_assert(kDarken_GrBlendEquation == (int)SkBlendMode::kDarken + EQ_OFFSET); in hw_blend_equation()
37 static_assert(kLighten_GrBlendEquation == (int)SkBlendMode::kLighten + EQ_OFFSET); in hw_blend_equation()
38 static_assert(kColorDodge_GrBlendEquation == (int)SkBlendMode::kColorDodge + EQ_OFFSET); in hw_blend_equation()
39 static_assert(kColorBurn_GrBlendEquation == (int)SkBlendMode::kColorBurn + EQ_OFFSET); in hw_blend_equation()
[all …]
/external/skqp/src/gpu/effects/
DGrXfermodeFragmentProcessor.cpp20 static inline bool does_cpu_blend_impl_match_gpu(SkBlendMode mode) { in does_cpu_blend_impl_match_gpu()
24 return mode <= SkBlendMode::kLastSeparableMode && mode != SkBlendMode::kSoftLight && in does_cpu_blend_impl_match_gpu()
25 mode != SkBlendMode::kColorBurn; in does_cpu_blend_impl_match_gpu()
34 SkBlendMode mode) { in Make()
57 SkBlendMode getMode() const { return fMode; } in getMode()
62 SkBlendMode mode) in ComposeTwoFragmentProcessor()
72 const GrFragmentProcessor* dst, SkBlendMode mode) { in OptFlags()
75 case SkBlendMode::kClear: in OptFlags()
76 case SkBlendMode::kSrc: in OptFlags()
77 case SkBlendMode::kDst: in OptFlags()
[all …]
DGrCustomXfermode.cpp23 bool GrCustomXfermode::IsSupportedMode(SkBlendMode mode) { in IsSupportedMode()
24 return (int)mode > (int)SkBlendMode::kLastCoeffMode && in IsSupportedMode()
25 (int)mode <= (int)SkBlendMode::kLastMode; in IsSupportedMode()
32 static constexpr GrBlendEquation hw_blend_equation(SkBlendMode mode) { in hw_blend_equation()
34 #define EQ_OFFSET (kOverlay_GrBlendEquation - (int)SkBlendMode::kOverlay) in hw_blend_equation()
35 GR_STATIC_ASSERT(kOverlay_GrBlendEquation == (int)SkBlendMode::kOverlay + EQ_OFFSET); in hw_blend_equation()
36 GR_STATIC_ASSERT(kDarken_GrBlendEquation == (int)SkBlendMode::kDarken + EQ_OFFSET); in hw_blend_equation()
37 GR_STATIC_ASSERT(kLighten_GrBlendEquation == (int)SkBlendMode::kLighten + EQ_OFFSET); in hw_blend_equation()
38 GR_STATIC_ASSERT(kColorDodge_GrBlendEquation == (int)SkBlendMode::kColorDodge + EQ_OFFSET); in hw_blend_equation()
39 GR_STATIC_ASSERT(kColorBurn_GrBlendEquation == (int)SkBlendMode::kColorBurn + EQ_OFFSET); in hw_blend_equation()
[all …]
/external/skia/docs/examples/
Dskpaint_xfer.cpp11 SkBlendMode modes[] = { in draw()
12 SkBlendMode::kClear, in draw()
13 SkBlendMode::kSrc, in draw()
14 SkBlendMode::kDst, in draw()
15 SkBlendMode::kSrcOver, in draw()
16 SkBlendMode::kDstOver, in draw()
17 SkBlendMode::kSrcIn, in draw()
18 SkBlendMode::kDstIn, in draw()
19 SkBlendMode::kSrcOut, in draw()
20 SkBlendMode::kDstOut, in draw()
[all …]
DBlendModes.cpp16 auto comp = SkShaders::Blend(SkBlendMode::kModulate, std::move(rad), std::move(sweep)); in drawBG()
24 SkBlendMode blendModes[] = { in draw()
25 SkBlendMode::kDst, in draw()
26 SkBlendMode::kSrc, in draw()
27 SkBlendMode::kSrcOver, in draw()
28 SkBlendMode::kDstOver, in draw()
29 SkBlendMode::kSrcIn, in draw()
30 SkBlendMode::kDstIn, in draw()
31 SkBlendMode::kSrcOut, in draw()
32 SkBlendMode::kDstOut, in draw()
[all …]
/external/skia/bench/
DBlendmodeBench.cpp20 XfermodeBench(SkBlendMode mode, bool aa) : fBlendMode(mode) { in XfermodeBench()
65 SkBlendMode fBlendMode;
78 BENCH(SkBlendMode::kClear)
79 BENCH(SkBlendMode::kSrc)
80 BENCH(SkBlendMode::kDst)
81 BENCH(SkBlendMode::kSrcOver)
82 BENCH(SkBlendMode::kDstOver)
83 BENCH(SkBlendMode::kSrcIn)
84 BENCH(SkBlendMode::kDstIn)
85 BENCH(SkBlendMode::kSrcOut)
[all …]
/external/skqp/bench/
DBlendmodeBench.cpp20 XfermodeBench(SkBlendMode mode, bool aa) : fBlendMode(mode) { in XfermodeBench()
65 SkBlendMode fBlendMode;
78 BENCH(SkBlendMode::kClear)
79 BENCH(SkBlendMode::kSrc)
80 BENCH(SkBlendMode::kDst)
81 BENCH(SkBlendMode::kSrcOver)
82 BENCH(SkBlendMode::kDstOver)
83 BENCH(SkBlendMode::kSrcIn)
84 BENCH(SkBlendMode::kDstIn)
85 BENCH(SkBlendMode::kSrcOut)
[all …]
/external/skqp/gm/
Dlcdblendmodes.cpp77 surfPaint.setBlendMode(SkBlendMode::kSrcOver); in onDraw()
82 const SkBlendMode gModes[] = { in drawColumn()
83 SkBlendMode::kClear, in drawColumn()
84 SkBlendMode::kSrc, in drawColumn()
85 SkBlendMode::kDst, in drawColumn()
86 SkBlendMode::kSrcOver, in drawColumn()
87 SkBlendMode::kDstOver, in drawColumn()
88 SkBlendMode::kSrcIn, in drawColumn()
89 SkBlendMode::kDstIn, in drawColumn()
90 SkBlendMode::kSrcOut, in drawColumn()
[all …]
Dcoloremoji_blendmodes.cpp77 const SkBlendMode gModes[] = { in onDraw()
78 SkBlendMode::kClear, in onDraw()
79 SkBlendMode::kSrc, in onDraw()
80 SkBlendMode::kDst, in onDraw()
81 SkBlendMode::kSrcOver, in onDraw()
82 SkBlendMode::kDstOver, in onDraw()
83 SkBlendMode::kSrcIn, in onDraw()
84 SkBlendMode::kDstIn, in onDraw()
85 SkBlendMode::kSrcOut, in onDraw()
86 SkBlendMode::kDstOut, in onDraw()
[all …]
Ddrawatlascolor.cpp27 paint.setBlendMode(SkBlendMode::kSrc); in make_atlas()
75 const SkBlendMode gModes[] = { in onDraw()
76 SkBlendMode::kClear, in onDraw()
77 SkBlendMode::kSrc, in onDraw()
78 SkBlendMode::kDst, in onDraw()
79 SkBlendMode::kSrcOver, in onDraw()
80 SkBlendMode::kDstOver, in onDraw()
81 SkBlendMode::kSrcIn, in onDraw()
82 SkBlendMode::kDstIn, in onDraw()
83 SkBlendMode::kSrcOut, in onDraw()
[all …]
Dxfermodeimagefilter.cpp51 const SkBlendMode gModes[] = { in onDraw()
52 SkBlendMode::kClear, in onDraw()
53 SkBlendMode::kSrc, in onDraw()
54 SkBlendMode::kDst, in onDraw()
55 SkBlendMode::kSrcOver, in onDraw()
56 SkBlendMode::kDstOver, in onDraw()
57 SkBlendMode::kSrcIn, in onDraw()
58 SkBlendMode::kDstIn, in onDraw()
59 SkBlendMode::kSrcOut, in onDraw()
60 SkBlendMode::kDstOut, in onDraw()
[all …]
Dandroidblendmodes.cpp54 void drawTile(SkCanvas* canvas, int xOffset, int yOffset, SkBlendMode mode) { in drawTile()
81 for (SkBlendMode mode : { SkBlendMode::kPlus /* add */, SkBlendMode::kClear, in onDraw()
82 SkBlendMode::kDarken, SkBlendMode::kDst, in onDraw()
83 SkBlendMode::kDstATop, SkBlendMode::kDstIn, in onDraw()
84 SkBlendMode::kDstOut, SkBlendMode::kDstOver, in onDraw()
85 SkBlendMode::kLighten, SkBlendMode::kModulate /* multiply */, in onDraw()
86 SkBlendMode::kOverlay, SkBlendMode::kScreen, in onDraw()
87 SkBlendMode::kSrc, SkBlendMode::kSrcATop, in onDraw()
88 SkBlendMode::kSrcIn, SkBlendMode::kSrcOut, in onDraw()
89 SkBlendMode::kSrcOver, SkBlendMode::kXor } ) { in onDraw()
/external/skia/gm/
Dlcdblendmodes.cpp87 surfPaint.setBlendMode(SkBlendMode::kSrcOver); in onDraw()
92 const SkBlendMode gModes[] = { in drawColumn()
93 SkBlendMode::kClear, in drawColumn()
94 SkBlendMode::kSrc, in drawColumn()
95 SkBlendMode::kDst, in drawColumn()
96 SkBlendMode::kSrcOver, in drawColumn()
97 SkBlendMode::kDstOver, in drawColumn()
98 SkBlendMode::kSrcIn, in drawColumn()
99 SkBlendMode::kDstIn, in drawColumn()
100 SkBlendMode::kSrcOut, in drawColumn()
[all …]
Dcoloremoji_blendmodes.cpp79 const SkBlendMode gModes[] = { in onDraw()
80 SkBlendMode::kClear, in onDraw()
81 SkBlendMode::kSrc, in onDraw()
82 SkBlendMode::kDst, in onDraw()
83 SkBlendMode::kSrcOver, in onDraw()
84 SkBlendMode::kDstOver, in onDraw()
85 SkBlendMode::kSrcIn, in onDraw()
86 SkBlendMode::kDstIn, in onDraw()
87 SkBlendMode::kSrcOut, in onDraw()
88 SkBlendMode::kDstOut, in onDraw()
[all …]
Ddrawatlascolor.cpp40 paint.setBlendMode(SkBlendMode::kSrc); in make_atlas()
88 const SkBlendMode gModes[] = { in onDraw()
89 SkBlendMode::kClear, in onDraw()
90 SkBlendMode::kSrc, in onDraw()
91 SkBlendMode::kDst, in onDraw()
92 SkBlendMode::kSrcOver, in onDraw()
93 SkBlendMode::kDstOver, in onDraw()
94 SkBlendMode::kSrcIn, in onDraw()
95 SkBlendMode::kDstIn, in onDraw()
96 SkBlendMode::kSrcOut, in onDraw()
[all …]
Dxfermodeimagefilter.cpp59 const SkBlendMode gModes[] = { in onDraw()
60 SkBlendMode::kClear, in onDraw()
61 SkBlendMode::kSrc, in onDraw()
62 SkBlendMode::kDst, in onDraw()
63 SkBlendMode::kSrcOver, in onDraw()
64 SkBlendMode::kDstOver, in onDraw()
65 SkBlendMode::kSrcIn, in onDraw()
66 SkBlendMode::kDstIn, in onDraw()
67 SkBlendMode::kSrcOut, in onDraw()
68 SkBlendMode::kDstOut, in onDraw()
[all …]
Dandroidblendmodes.cpp66 void drawTile(SkCanvas* canvas, int xOffset, int yOffset, SkBlendMode mode) { in drawTile()
90 for (SkBlendMode mode : { SkBlendMode::kPlus /* add */, SkBlendMode::kClear, in onDraw()
91 SkBlendMode::kDarken, SkBlendMode::kDst, in onDraw()
92 SkBlendMode::kDstATop, SkBlendMode::kDstIn, in onDraw()
93 SkBlendMode::kDstOut, SkBlendMode::kDstOver, in onDraw()
94 SkBlendMode::kLighten, SkBlendMode::kModulate /* multiply */, in onDraw()
95 SkBlendMode::kOverlay, SkBlendMode::kScreen, in onDraw()
96 SkBlendMode::kSrc, SkBlendMode::kSrcATop, in onDraw()
97 SkBlendMode::kSrcIn, SkBlendMode::kSrcOut, in onDraw()
98 SkBlendMode::kSrcOver, SkBlendMode::kXor } ) { in onDraw()
/external/skqp/src/c/
Dsk_paint.cpp136 SkBlendMode skmode; in sk_paint_set_xfermode_mode()
139 MAP( CLEAR_SK_XFERMODE_MODE, SkBlendMode::kClear ); in sk_paint_set_xfermode_mode()
140 MAP( SRC_SK_XFERMODE_MODE, SkBlendMode::kSrc ); in sk_paint_set_xfermode_mode()
141 MAP( DST_SK_XFERMODE_MODE, SkBlendMode::kDst ); in sk_paint_set_xfermode_mode()
142 MAP( SRCOVER_SK_XFERMODE_MODE, SkBlendMode::kSrcOver ); in sk_paint_set_xfermode_mode()
143 MAP( DSTOVER_SK_XFERMODE_MODE, SkBlendMode::kDstOver ); in sk_paint_set_xfermode_mode()
144 MAP( SRCIN_SK_XFERMODE_MODE, SkBlendMode::kSrcIn ); in sk_paint_set_xfermode_mode()
145 MAP( DSTIN_SK_XFERMODE_MODE, SkBlendMode::kDstIn ); in sk_paint_set_xfermode_mode()
146 MAP( SRCOUT_SK_XFERMODE_MODE, SkBlendMode::kSrcOut ); in sk_paint_set_xfermode_mode()
147 MAP( DSTOUT_SK_XFERMODE_MODE, SkBlendMode::kDstOut ); in sk_paint_set_xfermode_mode()
[all …]
/external/skia/src/c/
Dsk_paint.cpp136 SkBlendMode skmode; in sk_paint_set_xfermode_mode()
139 MAP( CLEAR_SK_XFERMODE_MODE, SkBlendMode::kClear ); in sk_paint_set_xfermode_mode()
140 MAP( SRC_SK_XFERMODE_MODE, SkBlendMode::kSrc ); in sk_paint_set_xfermode_mode()
141 MAP( DST_SK_XFERMODE_MODE, SkBlendMode::kDst ); in sk_paint_set_xfermode_mode()
142 MAP( SRCOVER_SK_XFERMODE_MODE, SkBlendMode::kSrcOver ); in sk_paint_set_xfermode_mode()
143 MAP( DSTOVER_SK_XFERMODE_MODE, SkBlendMode::kDstOver ); in sk_paint_set_xfermode_mode()
144 MAP( SRCIN_SK_XFERMODE_MODE, SkBlendMode::kSrcIn ); in sk_paint_set_xfermode_mode()
145 MAP( DSTIN_SK_XFERMODE_MODE, SkBlendMode::kDstIn ); in sk_paint_set_xfermode_mode()
146 MAP( SRCOUT_SK_XFERMODE_MODE, SkBlendMode::kSrcOut ); in sk_paint_set_xfermode_mode()
147 MAP( DSTOUT_SK_XFERMODE_MODE, SkBlendMode::kDstOut ); in sk_paint_set_xfermode_mode()
[all …]

12345678910>>...27