Lines Matching refs:SkBlendMode
13 bool SkBlendMode_ShouldPreScaleCoverage(SkBlendMode mode, bool rgb_coverage) { in SkBlendMode_ShouldPreScaleCoverage()
28 case SkBlendMode::kDst: // d --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
29 case SkBlendMode::kDstOver: // d + s*inv(da) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
30 case SkBlendMode::kPlus: // clamp(s+d) --> no sa term, ok! in SkBlendMode_ShouldPreScaleCoverage()
33 case SkBlendMode::kDstOut: // d * inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
34 case SkBlendMode::kSrcATop: // s*da + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
35 case SkBlendMode::kSrcOver: // s + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
36 case SkBlendMode::kXor: // s*inv(da) + d*inv(sa) in SkBlendMode_ShouldPreScaleCoverage()
45 bool SkBlendMode_SupportsCoverageAsAlpha(SkBlendMode mode) { in SkBlendMode_SupportsCoverageAsAlpha()
49 bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff* src, SkBlendModeCoeff* dst) { in SkBlendMode_AsCoeff()
77 if (mode > SkBlendMode::kScreen) { in SkBlendMode_AsCoeff()
89 void SkBlendMode_AppendStages(SkBlendMode mode, SkRasterPipeline* p) { in SkBlendMode_AppendStages()
92 case SkBlendMode::kClear: stage = SkRasterPipelineOp::clear; break; in SkBlendMode_AppendStages()
93 case SkBlendMode::kSrc: return; // This stage is a no-op. in SkBlendMode_AppendStages()
94 case SkBlendMode::kDst: stage = SkRasterPipelineOp::move_dst_src; break; in SkBlendMode_AppendStages()
95 case SkBlendMode::kSrcOver: stage = SkRasterPipelineOp::srcover; break; in SkBlendMode_AppendStages()
96 case SkBlendMode::kDstOver: stage = SkRasterPipelineOp::dstover; break; in SkBlendMode_AppendStages()
97 case SkBlendMode::kSrcIn: stage = SkRasterPipelineOp::srcin; break; in SkBlendMode_AppendStages()
98 case SkBlendMode::kDstIn: stage = SkRasterPipelineOp::dstin; break; in SkBlendMode_AppendStages()
99 case SkBlendMode::kSrcOut: stage = SkRasterPipelineOp::srcout; break; in SkBlendMode_AppendStages()
100 case SkBlendMode::kDstOut: stage = SkRasterPipelineOp::dstout; break; in SkBlendMode_AppendStages()
101 case SkBlendMode::kSrcATop: stage = SkRasterPipelineOp::srcatop; break; in SkBlendMode_AppendStages()
102 case SkBlendMode::kDstATop: stage = SkRasterPipelineOp::dstatop; break; in SkBlendMode_AppendStages()
103 case SkBlendMode::kXor: stage = SkRasterPipelineOp::xor_; break; in SkBlendMode_AppendStages()
104 case SkBlendMode::kPlus: stage = SkRasterPipelineOp::plus_; break; in SkBlendMode_AppendStages()
105 case SkBlendMode::kModulate: stage = SkRasterPipelineOp::modulate; break; in SkBlendMode_AppendStages()
107 case SkBlendMode::kScreen: stage = SkRasterPipelineOp::screen; break; in SkBlendMode_AppendStages()
108 case SkBlendMode::kOverlay: stage = SkRasterPipelineOp::overlay; break; in SkBlendMode_AppendStages()
109 case SkBlendMode::kDarken: stage = SkRasterPipelineOp::darken; break; in SkBlendMode_AppendStages()
110 case SkBlendMode::kLighten: stage = SkRasterPipelineOp::lighten; break; in SkBlendMode_AppendStages()
111 case SkBlendMode::kColorDodge: stage = SkRasterPipelineOp::colordodge; break; in SkBlendMode_AppendStages()
112 case SkBlendMode::kColorBurn: stage = SkRasterPipelineOp::colorburn; break; in SkBlendMode_AppendStages()
113 case SkBlendMode::kHardLight: stage = SkRasterPipelineOp::hardlight; break; in SkBlendMode_AppendStages()
114 case SkBlendMode::kSoftLight: stage = SkRasterPipelineOp::softlight; break; in SkBlendMode_AppendStages()
115 case SkBlendMode::kDifference: stage = SkRasterPipelineOp::difference; break; in SkBlendMode_AppendStages()
116 case SkBlendMode::kExclusion: stage = SkRasterPipelineOp::exclusion; break; in SkBlendMode_AppendStages()
117 case SkBlendMode::kMultiply: stage = SkRasterPipelineOp::multiply; break; in SkBlendMode_AppendStages()
119 case SkBlendMode::kHue: stage = SkRasterPipelineOp::hue; break; in SkBlendMode_AppendStages()
120 case SkBlendMode::kSaturation: stage = SkRasterPipelineOp::saturation; break; in SkBlendMode_AppendStages()
121 case SkBlendMode::kColor: stage = SkRasterPipelineOp::color; break; in SkBlendMode_AppendStages()
122 case SkBlendMode::kLuminosity: stage = SkRasterPipelineOp::luminosity; break; in SkBlendMode_AppendStages()
127 SkPMColor4f SkBlendMode_Apply(SkBlendMode mode, const SkPMColor4f& src, const SkPMColor4f& dst) { in SkBlendMode_Apply()
130 case SkBlendMode::kClear: return SK_PMColor4fTRANSPARENT; in SkBlendMode_Apply()
131 case SkBlendMode::kSrc: return src; in SkBlendMode_Apply()
132 case SkBlendMode::kDst: return dst; in SkBlendMode_Apply()
133 case SkBlendMode::kSrcOver: { in SkBlendMode_Apply()