diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-02 08:49:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 15:28:02 +0000 |
commit | bfafcba05a54e1bc9c3074353a155d61119d095c (patch) | |
tree | 1304d38dddb0253db2462028712db89aa5b21bbb /src/gpu/GrProcessorSet.h | |
parent | bb5af6b70086cca8cbaa17b6ecfd462be3ab0b9e (diff) |
Determine whether any fp uses local coords in FragmentProcessorAnalysis rather than GrPipeline creation
Change-Id: I3b6253cd2b0081dfece51125082fd78f647e45e1
Reviewed-on: https://skia-review.googlesource.com/9133
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProcessorSet.h')
-rw-r--r-- | src/gpu/GrProcessorSet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrProcessorSet.h b/src/gpu/GrProcessorSet.h index bd78dc927e..722bc048bd 100644 --- a/src/gpu/GrProcessorSet.h +++ b/src/gpu/GrProcessorSet.h @@ -71,6 +71,7 @@ public: } bool usesPLSDstRead() const { return fUsesPLSDstRead; } + bool usesLocalCoords() const { return fUsesLocalCoords; } bool isCompatibleWithCoverageAsAlpha() const { return fCompatibleWithCoverageAsAlpha; } bool isOutputColorOpaque() const { return ColorType::kOpaque == fColorType || ColorType::kOpaqueConstant == fColorType; @@ -96,6 +97,7 @@ public: bool fUsesPLSDstRead = false; bool fCompatibleWithCoverageAsAlpha = true; + bool fUsesLocalCoords = false; CoverageType fCoverageType = CoverageType::kNone; ColorType fColorType = ColorType::kUnknown; int fInitialColorProcessorsToEliminate = 0; |