diff options
author | egdaniel <egdaniel@google.com> | 2014-12-03 11:41:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 11:41:55 -0800 |
commit | c016fb8f9fb53dd8d4936c5e9e16a9dc99ab392e (patch) | |
tree | 240c358dbbab8fef55266fd20916afbb97bb98fa /src/gpu/effects/GrPorterDuffXferProcessor.h | |
parent | 96a6c4df417a2382dd183b0dbc1c614819795f2a (diff) |
Use static XPF for porter duff xp factories.
BUG=skia:
Review URL: https://codereview.chromium.org/776843004
Diffstat (limited to 'src/gpu/effects/GrPorterDuffXferProcessor.h')
-rw-r--r-- | src/gpu/effects/GrPorterDuffXferProcessor.h | 2 |
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))); } |