diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-04 13:22:08 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-04 19:23:05 +0000 |
commit | bfd5183b9e039b50fb33441d1f90130b8eced80a (patch) | |
tree | 5b1aff9c95eb6cff4d5caee353f10265b7bdc4b9 /src/gpu/GrPrimitiveProcessor.h | |
parent | 0bd783f951a004ccca175b166f2b30a0fd18a6f6 (diff) |
Removes tracking of whether color is ignored by XP.
Removes the feedback to GrDrawOp via GrPipelineOptimizations.
Change-Id: I3cb17cad41779af292a92385fcd5ac23ae5a1ffd
Reviewed-on: https://skia-review.googlesource.com/6561
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r-- | src/gpu/GrPrimitiveProcessor.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h index 8d6a70284e..f1af14de4e 100644 --- a/src/gpu/GrPrimitiveProcessor.h +++ b/src/gpu/GrPrimitiveProcessor.h @@ -56,9 +56,6 @@ enum GrPixelLocalStorageState { */ class GrPipelineOptimizations { public: - /** Does the pipeline require the GrPrimitiveProcessor's color? */ - bool readsColor() const { return SkToBool(kReadsColor_Flag & fFlags); } - /** Does the pipeline require access to (implicit or explicit) local coordinates? */ bool readsLocalCoords() const { return SkToBool(kReadsLocalCoords_Flag & fFlags); @@ -74,7 +71,6 @@ public: so get the color)? */ bool getOverrideColorIfSet(GrColor* overrideColor) const { if (SkToBool(kUseOverrideColor_Flag & fFlags)) { - SkASSERT(SkToBool(kReadsColor_Flag & fFlags)); if (overrideColor) { *overrideColor = fOverrideColor; } @@ -98,21 +94,18 @@ 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 local coordinates - kReadsLocalCoords_Flag = 0x2, + kReadsLocalCoords_Flag = 0x1, // 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 = 0x4, + kCanTweakAlphaForCoverage_Flag = 0x2, // If this flag is set the GrPrimitiveProcessor must produce fOverrideColor as its // output color. If not set fOverrideColor is to be ignored. - kUseOverrideColor_Flag = 0x8, + kUseOverrideColor_Flag = 0x4, - kWillColorBlendWithDst_Flag = 0x10, + kWillColorBlendWithDst_Flag = 0x8, }; uint32_t fFlags; |