diff options
author | 2014-12-10 13:48:57 -0800 | |
---|---|---|
committer | 2014-12-10 13:48:57 -0800 | |
commit | c6bc58eded89b0c0a36b8e20e193c200f297a0da (patch) | |
tree | 3de559baf8eecee6f6576c9b6deee39fb8258775 /src/gpu/GrProcOptInfo.h | |
parent | 04b49c31789201fbef969f5598a286187920dd56 (diff) |
Remove GP from drawstate, revision of invariant output for GP
BUG=skia:
Review URL: https://codereview.chromium.org/791743003
Diffstat (limited to 'src/gpu/GrProcOptInfo.h')
-rw-r--r-- | src/gpu/GrProcOptInfo.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h index 91ff5f9eb5..30b286f3ae 100644 --- a/src/gpu/GrProcOptInfo.h +++ b/src/gpu/GrProcOptInfo.h @@ -13,7 +13,7 @@ class GrFragmentStage; class GrFragmentProcessor; -class GrGeometryProcessor; +class GrPrimitiveProcessor; class GrProcessor; /** @@ -33,8 +33,11 @@ public: , fReadsFragPosition(false) {} void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor startColor, - GrColorComponentFlags flags, bool areCoverageStages, - const GrGeometryProcessor* gp = NULL); + GrColorComponentFlags flags, bool areCoverageStages); + + void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStage*, int stagecount); + void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStage*, + int stagecount); bool isSolidWhite() const { return fInOut.isSolidWhite(); } bool isOpaque() const { return fInOut.isOpaque(); } @@ -89,6 +92,8 @@ public: bool readsFragPosition() const { return fReadsFragPosition; } private: + void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadFragPosition); + GrInvariantOutput fInOut; int fFirstEffectStageIndex; bool fInputColorIsUsed; |