Lines Matching refs:mode
30 SkProcCoeffXfermode(SkBlendMode mode) : fMode(mode) {} in SkProcCoeffXfermode() argument
67 const char* SkBlendMode_Name(SkBlendMode mode) { in SkBlendMode_Name() argument
68 SkASSERT((unsigned) mode <= (unsigned)SkBlendMode::kLastMode); in SkBlendMode_Name()
76 return gModeStrings[(int)mode]; in SkBlendMode_Name()
80 sk_sp<SkXfermode> SkXfermode::Make(SkBlendMode mode) { in Make() argument
81 if ((unsigned)mode > (unsigned)SkBlendMode::kLastMode) { in Make()
88 if (SkBlendMode::kSrcOver == mode) { in Make()
97 once[(int)mode]([mode] { in Make()
98 if (auto xfermode = SkOpts::create_xfermode(mode)) { in Make()
99 cached[(int)mode] = xfermode; in Make()
101 cached[(int)mode] = new SkProcCoeffXfermode(mode); in Make()
104 return sk_ref_sp(cached[(int)mode]); in Make()
109 bool SkXfermode::IsOpaque(SkBlendMode mode, SrcColorOpacity opacityType) { in IsOpaque() argument
111 if (!SkBlendMode_AsCoeff(mode, &src, &dst)) { in IsOpaque()
142 const GrXPFactory* SkBlendMode_AsXPFactory(SkBlendMode mode) { in SkBlendMode_AsXPFactory() argument
143 if (SkBlendMode_AsCoeff(mode, nullptr, nullptr)) { in SkBlendMode_AsXPFactory()
144 const GrXPFactory* result = GrPorterDuffXPFactory::Get(mode); in SkBlendMode_AsXPFactory()
149 SkASSERT(GrCustomXfermode::IsSupportedMode(mode)); in SkBlendMode_AsXPFactory()
150 return GrCustomXfermode::Get(mode); in SkBlendMode_AsXPFactory()