Lines Matching refs:SkBlendMode
18 const char* BlendFuncName(SkBlendMode mode) { in BlendFuncName()
20 case SkBlendMode::kClear: return "blend_clear"; in BlendFuncName()
21 case SkBlendMode::kSrc: return "blend_src"; in BlendFuncName()
22 case SkBlendMode::kDst: return "blend_dst"; in BlendFuncName()
23 case SkBlendMode::kSrcOver: return "blend_src_over"; in BlendFuncName()
24 case SkBlendMode::kDstOver: return "blend_dst_over"; in BlendFuncName()
25 case SkBlendMode::kSrcIn: return "blend_src_in"; in BlendFuncName()
26 case SkBlendMode::kDstIn: return "blend_dst_in"; in BlendFuncName()
27 case SkBlendMode::kSrcOut: return "blend_src_out"; in BlendFuncName()
28 case SkBlendMode::kDstOut: return "blend_dst_out"; in BlendFuncName()
29 case SkBlendMode::kSrcATop: return "blend_src_atop"; in BlendFuncName()
30 case SkBlendMode::kDstATop: return "blend_dst_atop"; in BlendFuncName()
31 case SkBlendMode::kXor: return "blend_xor"; in BlendFuncName()
32 case SkBlendMode::kPlus: return "blend_plus"; in BlendFuncName()
33 case SkBlendMode::kModulate: return "blend_modulate"; in BlendFuncName()
34 case SkBlendMode::kScreen: return "blend_screen"; in BlendFuncName()
35 case SkBlendMode::kOverlay: return "blend_overlay"; in BlendFuncName()
36 case SkBlendMode::kDarken: return "blend_darken"; in BlendFuncName()
37 case SkBlendMode::kLighten: return "blend_lighten"; in BlendFuncName()
38 case SkBlendMode::kColorDodge: return "blend_color_dodge"; in BlendFuncName()
39 case SkBlendMode::kColorBurn: return "blend_color_burn"; in BlendFuncName()
40 case SkBlendMode::kHardLight: return "blend_hard_light"; in BlendFuncName()
41 case SkBlendMode::kSoftLight: return "blend_soft_light"; in BlendFuncName()
42 case SkBlendMode::kDifference: return "blend_difference"; in BlendFuncName()
43 case SkBlendMode::kExclusion: return "blend_exclusion"; in BlendFuncName()
44 case SkBlendMode::kMultiply: return "blend_multiply"; in BlendFuncName()
45 case SkBlendMode::kHue: return "blend_hue"; in BlendFuncName()
46 case SkBlendMode::kSaturation: return "blend_saturation"; in BlendFuncName()
47 case SkBlendMode::kColor: return "blend_color"; in BlendFuncName()
48 case SkBlendMode::kLuminosity: return "blend_luminosity"; in BlendFuncName()
53 SkSpan<const float> GetPorterDuffBlendConstants(SkBlendMode mode) { in GetPorterDuffBlendConstants()
69 case SkBlendMode::kClear: return SkSpan(kClear); in GetPorterDuffBlendConstants()
70 case SkBlendMode::kSrc: return SkSpan(kSrc); in GetPorterDuffBlendConstants()
71 case SkBlendMode::kDst: return SkSpan(kDst); in GetPorterDuffBlendConstants()
72 case SkBlendMode::kSrcOver: return SkSpan(kSrcOver); in GetPorterDuffBlendConstants()
73 case SkBlendMode::kDstOver: return SkSpan(kDstOver); in GetPorterDuffBlendConstants()
74 case SkBlendMode::kSrcIn: return SkSpan(kSrcIn); in GetPorterDuffBlendConstants()
75 case SkBlendMode::kDstIn: return SkSpan(kDstIn); in GetPorterDuffBlendConstants()
76 case SkBlendMode::kSrcOut: return SkSpan(kSrcOut); in GetPorterDuffBlendConstants()
77 case SkBlendMode::kDstOut: return SkSpan(kDstOut); in GetPorterDuffBlendConstants()
78 case SkBlendMode::kSrcATop: return SkSpan(kSrcATop); in GetPorterDuffBlendConstants()
79 case SkBlendMode::kDstATop: return SkSpan(kDstATop); in GetPorterDuffBlendConstants()
80 case SkBlendMode::kXor: return SkSpan(kXor); in GetPorterDuffBlendConstants()
81 case SkBlendMode::kPlus: return SkSpan(kPlus); in GetPorterDuffBlendConstants()
86 ReducedBlendModeInfo GetReducedBlendModeInfo(SkBlendMode mode) { in GetReducedBlendModeInfo()
102 case SkBlendMode::kSrcOver: in GetReducedBlendModeInfo()
103 case SkBlendMode::kDstOver: in GetReducedBlendModeInfo()
104 case SkBlendMode::kSrcIn: in GetReducedBlendModeInfo()
105 case SkBlendMode::kDstIn: in GetReducedBlendModeInfo()
106 case SkBlendMode::kSrcOut: in GetReducedBlendModeInfo()
107 case SkBlendMode::kDstOut: in GetReducedBlendModeInfo()
108 case SkBlendMode::kSrcATop: in GetReducedBlendModeInfo()
109 case SkBlendMode::kDstATop: in GetReducedBlendModeInfo()
110 case SkBlendMode::kXor: in GetReducedBlendModeInfo()
111 case SkBlendMode::kPlus: return {"blend_porter_duff", GetPorterDuffBlendConstants(mode)}; in GetReducedBlendModeInfo()
113 case SkBlendMode::kHue: return {"blend_hslc", SkSpan(kHue)}; in GetReducedBlendModeInfo()
114 case SkBlendMode::kSaturation: return {"blend_hslc", SkSpan(kSaturation)}; in GetReducedBlendModeInfo()
115 case SkBlendMode::kColor: return {"blend_hslc", SkSpan(kColor)}; in GetReducedBlendModeInfo()
116 case SkBlendMode::kLuminosity: return {"blend_hslc", SkSpan(kLuminosity)}; in GetReducedBlendModeInfo()
118 case SkBlendMode::kOverlay: return {"blend_overlay", SkSpan(kOverlay)}; in GetReducedBlendModeInfo()
119 case SkBlendMode::kHardLight: return {"blend_overlay", SkSpan(kHardLight)}; in GetReducedBlendModeInfo()
121 case SkBlendMode::kDarken: return {"blend_darken", SkSpan(kDarken)}; in GetReducedBlendModeInfo()
122 case SkBlendMode::kLighten: return {"blend_darken", SkSpan(kLighten)}; in GetReducedBlendModeInfo()