diff options
author | Brian Salomon <bsalomon@google.com> | 2018-01-12 12:06:06 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-12 19:31:03 +0000 |
commit | 7cdabedc8b73b70e4aa70c5621a4bdc8e00ede44 (patch) | |
tree | 3068170ce9076b048fc322546be948a6f2eb9381 /src/gpu/GrXferProcessor.h | |
parent | 1001f843a45e95f6df1d44242b6b06c77898e870 (diff) |
Use GrOvalOpFactory ops to draw non-AA rrects, ovals, and arcs.
This improves performance.
Bug: skia:
Change-Id: Ie01170ec084be66ea166b2baffcdb415583aa523
Reviewed-on: https://skia-review.googlesource.com/93321
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.h')
-rw-r--r-- | src/gpu/GrXferProcessor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrXferProcessor.h b/src/gpu/GrXferProcessor.h index 5ede1ae828..3aac2d3732 100644 --- a/src/gpu/GrXferProcessor.h +++ b/src/gpu/GrXferProcessor.h @@ -301,6 +301,9 @@ public: const GrCaps&, GrPixelConfigIsClamped); + /** If true mode will be the equivalent SkBlendMode for the XPFactory. */ + static bool AsBlendMode(const GrXPFactory*, SkBlendMode* mode); + protected: constexpr GrXPFactory() {} @@ -319,6 +322,8 @@ private: const GrProcessorAnalysisCoverage&, const GrCaps&, GrPixelConfigIsClamped) const = 0; + + virtual bool asBlendMode(SkBlendMode*) const { return false; } }; #if defined(__GNUC__) #pragma GCC diagnostic pop |