aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/effects/GrXfermodeFragmentProcessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/effects/GrXfermodeFragmentProcessor.h')
-rw-r--r--include/gpu/effects/GrXfermodeFragmentProcessor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gpu/effects/GrXfermodeFragmentProcessor.h b/include/gpu/effects/GrXfermodeFragmentProcessor.h
index d93b400b8b..e2d1c0a544 100644
--- a/include/gpu/effects/GrXfermodeFragmentProcessor.h
+++ b/include/gpu/effects/GrXfermodeFragmentProcessor.h
@@ -13,6 +13,16 @@
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);
+
+ /** 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);
+
const GrFragmentProcessor* CreateFromTwoProcessors(const GrFragmentProcessor* src,
const GrFragmentProcessor* dst,
SkXfermode::Mode mode);