Index: src/gpu/GrProcOptInfo.cpp |
diff --git a/src/gpu/GrProcOptInfo.cpp b/src/gpu/GrProcOptInfo.cpp |
index a84ac2e17fb45dcfb2a9f556b2a628dd68bcf53f..18a32020d4539154ca9d993ea98698ea05f3c35f 100644 |
--- a/src/gpu/GrProcOptInfo.cpp |
+++ b/src/gpu/GrProcOptInfo.cpp |
@@ -7,9 +7,8 @@ |
#include "GrProcOptInfo.h" |
-#include "GrFragmentProcessor.h" |
+#include "GrGeometryProcessor.h" |
#include "GrFragmentStage.h" |
-#include "GrGeometryProcessor.h" |
void GrProcOptInfo::calcWithInitialValues(const GrFragmentStage* stages, |
int stageCount, |
@@ -23,7 +22,6 @@ |
fInputColor = startColor; |
fRemoveVertexAttrib = false; |
fReadsDst = false; |
- fReadsFragPosition = false; |
if (areCoverageStages && gp) { |
gp->computeInvariantOutput(&fInOut); |
@@ -33,21 +31,16 @@ |
const GrFragmentProcessor* processor = stages[i].getProcessor(); |
fInOut.resetWillUseInputColor(); |
processor->computeInvariantOutput(&fInOut); |
-#ifdef SK_DEBUG |
+ #ifdef SK_DEBUG |
fInOut.validate(); |
-#endif |
+ #endif |
if (!fInOut.willUseInputColor()) { |
fFirstEffectStageIndex = i; |
fInputColorIsUsed = false; |
- // Reset these since we don't care if previous stages read these values |
- fReadsDst = false; |
- fReadsFragPosition = false; |
+ fReadsDst = false; // Reset this since we don't care if previous stages read dst |
} |
if (processor->willReadDstColor()) { |
fReadsDst = true; |
- } |
- if (processor->willReadFragmentPosition()) { |
- fReadsFragPosition = true; |
} |
if (kRGBA_GrColorComponentFlags == fInOut.validFlags()) { |
fFirstEffectStageIndex = i + 1; |
@@ -57,10 +50,7 @@ |
// Since we are clearing all previous color stages we are in a state where we have found |
// zero stages that don't multiply the inputColor. |
fInOut.resetNonMulStageFound(); |
- // Reset these since we don't care if previous stages read these values |
- fReadsDst = false; |
- fReadsFragPosition = false; |
+ fReadsDst = false; // Reset this since we don't care if previous stages read dst |
} |
} |
} |
- |