Index: include/gpu/effects/GrXfermodeFragmentProcessor.h |
diff --git a/include/gpu/effects/GrXfermodeFragmentProcessor.h b/include/gpu/effects/GrXfermodeFragmentProcessor.h |
index fb07d003cd65426c79e4ba97de1665268280d849..0e2435ea93ecd0c4bff0ff1ba0ed2bcf4122e467 100644 |
--- a/include/gpu/effects/GrXfermodeFragmentProcessor.h |
+++ b/include/gpu/effects/GrXfermodeFragmentProcessor.h |
@@ -15,20 +15,20 @@ class GrFragmentProcessor; |
namespace GrXfermodeFragmentProcessor { |
/** The color input to the returned processor is treated as the src and the passed in processor |
is the dst. */ |
- const GrFragmentProcessor* CreateFromDstProcessor(const GrFragmentProcessor* dst, |
- SkXfermode::Mode mode); |
+ sk_sp<GrFragmentProcessor> MakeFromDstProcessor(sk_sp<GrFragmentProcessor> dst, |
+ SkXfermode::Mode mode); |
/** The color input to the returned processor is treated as the dst and the passed in processor |
is the src. */ |
- const GrFragmentProcessor* CreateFromSrcProcessor(const GrFragmentProcessor* src, |
- SkXfermode::Mode mode); |
+ sk_sp<GrFragmentProcessor> MakeFromSrcProcessor(sk_sp<GrFragmentProcessor> src, |
+ SkXfermode::Mode mode); |
/** Takes the input color, which is assumed to be unpremultiplied, passes it as an opaque color |
to both src and dst. The outputs of a src and dst are blended using mode and the original |
input's alpha is applied to the blended color to produce a premul output. */ |
- const GrFragmentProcessor* CreateFromTwoProcessors(const GrFragmentProcessor* src, |
- const GrFragmentProcessor* dst, |
- SkXfermode::Mode mode); |
+ sk_sp<GrFragmentProcessor> MakeFromTwoProcessors(sk_sp<GrFragmentProcessor> src, |
+ sk_sp<GrFragmentProcessor> dst, |
+ SkXfermode::Mode mode); |
}; |
#endif |