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