diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-13 10:36:40 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-13 16:26:56 +0000 |
commit | 780b41fc10fb212ec6d9a9aeb7ca4cc0292fb85e (patch) | |
tree | 69aca5cd839b6bf4e054113bf499aa56dc78ec67 /src/gpu/GrXferProcessor.h | |
parent | 4f7062378eb7bdaf6ab19d178d54effd55adcc72 (diff) |
Add query to GrXPFactory about coverage-as-alpha optimization
This will be needed to have GrDrawOps that haven't yet built pipelines.
Change-Id: If5292aaa5dc9f98dccbe27be98960b630332158d
Reviewed-on: https://skia-review.googlesource.com/9480
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.h')
-rw-r--r-- | src/gpu/GrXferProcessor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrXferProcessor.h b/src/gpu/GrXferProcessor.h index d6d6fa33e3..7f3fd30e8d 100644 --- a/src/gpu/GrXferProcessor.h +++ b/src/gpu/GrXferProcessor.h @@ -313,6 +313,8 @@ public: const GrCaps&, const FragmentProcessorAnalysis&); + static bool CompatibleWithCoverageAsAlpha(const GrXPFactory*, bool colorIsOpaque); + protected: constexpr GrXPFactory() {} @@ -330,6 +332,8 @@ private: * shader. */ virtual bool willReadDstInShader(const GrCaps&, const FragmentProcessorAnalysis&) const = 0; + + virtual bool compatibleWithCoverageAsAlpha(bool colorIsOpaque) const = 0; }; #if defined(__GNUC__) || defined(__clang) #pragma GCC diagnostic pop |