diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-14 10:12:26 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-14 15:03:24 +0000 |
commit | 477d0efcf2d90c70a87c5a126349e76ac57d9649 (patch) | |
tree | fada7945b261b0a68ebad386c7fb6908439587dc /src | |
parent | 148cf8813a2ac62242d23b5098a7707a7c37f9dc (diff) |
Make ops in bezier_effects GMs be non-Legacy GrMeshDrawOps
Change-Id: I1d56536820a61af293a7bce290f35b724c3a8257
Reviewed-on: https://skia-review.googlesource.com/23480
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrProcessorSet.cpp | 7 | ||||
-rw-r--r-- | src/gpu/GrProcessorSet.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrProcessorSet.cpp b/src/gpu/GrProcessorSet.cpp index 6c9e55df86..152b97db53 100644 --- a/src/gpu/GrProcessorSet.cpp +++ b/src/gpu/GrProcessorSet.cpp @@ -9,6 +9,7 @@ #include "GrAppliedClip.h" #include "GrCaps.h" #include "GrXferProcessor.h" +#include "SkBlendModePriv.h" #include "effects/GrPorterDuffXferProcessor.h" const GrProcessorSet& GrProcessorSet::EmptySet() { @@ -36,6 +37,12 @@ GrProcessorSet::GrProcessorSet(GrPaint&& paint) : fXP(paint.getXPFactory()) { } } +GrProcessorSet::GrProcessorSet(SkBlendMode mode) + : fXP(SkBlendMode_AsXPFactory(mode)) + , fColorFragmentProcessorCnt(0) + , fFragmentProcessorOffset(0) + , fFlags(0) {} + GrProcessorSet::~GrProcessorSet() { for (int i = fFragmentProcessorOffset; i < fFragmentProcessors.count(); ++i) { if (this->isFinalized()) { diff --git a/src/gpu/GrProcessorSet.h b/src/gpu/GrProcessorSet.h index 407d71e080..a12a2ce43f 100644 --- a/src/gpu/GrProcessorSet.h +++ b/src/gpu/GrProcessorSet.h @@ -24,6 +24,7 @@ private: public: GrProcessorSet(GrPaint&& paint); + GrProcessorSet(SkBlendMode mode); ~GrProcessorSet(); |