Index: include/gpu/GrPaint.h |
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h |
index 6120348792809ee6765579607a7d1f8e05729996..a8af3c2f172dacf1347406316e48457d0793e41e 100644 |
--- a/include/gpu/GrPaint.h |
+++ b/include/gpu/GrPaint.h |
@@ -16,9 +16,9 @@ |
#include "effects/GrPorterDuffXferProcessor.h" |
#include "GrFragmentProcessor.h" |
+#include "SkBlendMode.h" |
#include "SkRefCnt.h" |
#include "SkRegion.h" |
-#include "SkXfermode.h" |
/** |
* The paint describes how color and coverage are computed at each pixel by GrContext draw |
@@ -95,6 +95,10 @@ public: |
fXPFactory = std::move(xpFactory); |
} |
+ void setPorterDuffXPFactory(SkBlendMode mode) { |
+ fXPFactory = GrPorterDuffXPFactory::Make((SkXfermode::Mode)mode); |
+ } |
+ |
void setPorterDuffXPFactory(SkXfermode::Mode mode) { |
fXPFactory = GrPorterDuffXPFactory::Make(mode); |
} |