diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-04 10:44:42 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-04 16:37:18 +0000 |
commit | 8c852be264d003b2e610c5b8634bc0f81c46bbba (patch) | |
tree | d67ab88ace56ed44725325310325428ffdb09437 /src/gpu/GrPrimitiveProcessor.h | |
parent | 1e854246e6ce431838de882116b86f085eb7b08e (diff) |
Removing tracking of whether GP/FP coverage calculations are used by XP.
Remove readsCoverage from GrPipelineOptimizations
Remove kNone from GrDefaultGeoProc::Coverage
Remove kIgnoreCoverage from GrXferProcessor::OptFlags
Remove GrPipeline::fIgnoresCoverage
Change-Id: I8f0c9337ee98b9c77af1e9a8a184519ce63822d4
Reviewed-on: https://skia-review.googlesource.com/6552
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r-- | src/gpu/GrPrimitiveProcessor.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h index ed2b2e3a0e..8d6a70284e 100644 --- a/src/gpu/GrPrimitiveProcessor.h +++ b/src/gpu/GrPrimitiveProcessor.h @@ -59,10 +59,6 @@ public: /** Does the pipeline require the GrPrimitiveProcessor's color? */ bool readsColor() const { return SkToBool(kReadsColor_Flag & fFlags); } - /** Does the pipeline require the GrPrimitiveProcessor's coverage? */ - bool readsCoverage() const { return - SkToBool(kReadsCoverage_Flag & fFlags); } - /** Does the pipeline require access to (implicit or explicit) local coordinates? */ bool readsLocalCoords() const { return SkToBool(kReadsLocalCoords_Flag & fFlags); @@ -103,23 +99,20 @@ public: private: enum { // If this is not set the primitive processor need not produce a color output - kReadsColor_Flag = 0x1, - - // If this is not set the primitive processor need not produce a coverage output - kReadsCoverage_Flag = 0x2, + kReadsColor_Flag = 0x1, // If this is not set the primitive processor need not produce local coordinates - kReadsLocalCoords_Flag = 0x4, + kReadsLocalCoords_Flag = 0x2, // If this flag is set then the primitive processor may produce color*coverage as // its color output (and not output a separate coverage). - kCanTweakAlphaForCoverage_Flag = 0x8, + kCanTweakAlphaForCoverage_Flag = 0x4, // If this flag is set the GrPrimitiveProcessor must produce fOverrideColor as its // output color. If not set fOverrideColor is to be ignored. - kUseOverrideColor_Flag = 0x10, + kUseOverrideColor_Flag = 0x8, - kWillColorBlendWithDst_Flag = 0x20, + kWillColorBlendWithDst_Flag = 0x10, }; uint32_t fFlags; |