Lines Matching defs:xfer
25 // idea for higher precision blends in xfer procs (and slightly faster)
895 * GrEffect that implements the all the separable xfer modes that cannot be expressed as Coeffs.
1694 SkXfermode* xfer = gCachedXfermodes[mode];
1695 if (NULL == xfer) {
1707 xfer = xfm;
1714 xfer = SkNEW_ARGS(SkClearXfermode, (rec));
1717 xfer = SkNEW_ARGS(SkSrcXfermode, (rec));
1723 xfer = SkNEW_ARGS(SkDstInXfermode, (rec));
1726 xfer = SkNEW_ARGS(SkDstOutXfermode, (rec));
1730 xfer = SkNEW_ARGS(SkProcCoeffXfermode, (rec, mode));
1734 gCachedXfermodes[mode] = xfer;
1736 return SkSafeRef(xfer);
1771 bool SkXfermode::AsMode(const SkXfermode* xfer, Mode* mode) {
1772 if (NULL == xfer) {
1778 return xfer->asMode(mode);
1781 bool SkXfermode::AsCoeff(const SkXfermode* xfer, Coeff* src, Coeff* dst) {
1782 if (NULL == xfer) {
1785 return xfer->asCoeff(src, dst);
1788 bool SkXfermode::IsMode(const SkXfermode* xfer, Mode mode) {
1789 // if xfer==null then the mode is srcover
1791 if (xfer && !xfer->asMode(&m)) {