aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrPorterDuffXferProcessor.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-12-03 11:41:54 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-03 11:41:55 -0800
commitc016fb8f9fb53dd8d4936c5e9e16a9dc99ab392e (patch)
tree240c358dbbab8fef55266fd20916afbb97bb98fa /src/gpu/effects/GrPorterDuffXferProcessor.h
parent96a6c4df417a2382dd183b0dbc1c614819795f2a (diff)
Use static XPF for porter duff xp factories.
Diffstat (limited to 'src/gpu/effects/GrPorterDuffXferProcessor.h')
-rw-r--r--src/gpu/effects/GrPorterDuffXferProcessor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.h b/src/gpu/effects/GrPorterDuffXferProcessor.h
index 474285d829..d210a81755 100644
--- a/src/gpu/effects/GrPorterDuffXferProcessor.h
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.h
@@ -53,6 +53,8 @@ private:
class GrPorterDuffXPFactory : public GrXPFactory {
public:
+ static GrXPFactory* Create(SkXfermode::Mode mode);
+
static GrXPFactory* Create(SkXfermode::Coeff src, SkXfermode::Coeff dst) {
return SkNEW_ARGS(GrPorterDuffXPFactory, ((GrBlendCoeff)(src), (GrBlendCoeff)(dst)));
}