| Index: src/gpu/GrProcOptInfo.cpp
|
| diff --git a/src/gpu/GrProcOptInfo.cpp b/src/gpu/GrProcOptInfo.cpp
|
| index 274c5305de3b17ef5c8747a5f5bc8caac0a0fed6..c2c52ac94d884e1cf1559f60d44530629e40c3fe 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) {
|
|
|