Index: src/gpu/GrProcOptInfo.cpp |
diff --git a/src/gpu/GrProcOptInfo.cpp b/src/gpu/GrProcOptInfo.cpp |
index a350ef783dbe9fbe37c2437b394c8784c003f345..54d7a53cb1d75b3582e46c266222f5c2cf229f9a 100644 |
--- a/src/gpu/GrProcOptInfo.cpp |
+++ b/src/gpu/GrProcOptInfo.cpp |
@@ -7,10 +7,31 @@ |
#include "GrProcOptInfo.h" |
+#include "GrBatch.h" |
#include "GrFragmentProcessor.h" |
#include "GrFragmentStage.h" |
#include "GrGeometryProcessor.h" |
+void GrProcOptInfo::calcColorWithBatch(const GrBatch* batch, |
+ const GrBatchOpt& batchOpt, |
+ const GrFragmentStage* stages, |
+ int stageCount) { |
+ GrInitInvariantOutput out; |
+ batch->getInvariantOutputColor(&out, batchOpt); |
+ fInOut.reset(out); |
+ this->internalCalc(stages, stageCount, batch->willReadFragmentPosition()); |
+} |
+ |
+void GrProcOptInfo::calcCoverageWithBatch(const GrBatch* batch, |
+ const GrBatchOpt& batchOpt, |
+ const GrFragmentStage* stages, |
+ int stageCount) { |
+ GrInitInvariantOutput out; |
+ batch->getInvariantOutputCoverage(&out, batchOpt); |
+ fInOut.reset(out); |
+ this->internalCalc(stages, stageCount, batch->willReadFragmentPosition()); |
+} |
+ |
void GrProcOptInfo::calcColorWithPrimProc(const GrPrimitiveProcessor* primProc, |
const GrFragmentStage* stages, |
int stageCount) { |