| Index: src/gpu/GrOptDrawState.cpp
|
| diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
|
| index 6f6f0af88821741649829ad680d488e15bdac12a..0d976c786700e45ba93cff7e7869bbcebee33afa 100644
|
| --- a/src/gpu/GrOptDrawState.cpp
|
| +++ b/src/gpu/GrOptDrawState.cpp
|
| @@ -122,6 +122,16 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
|
|
|
| // now create a key
|
| gpu->buildProgramDesc(*this, descInfo, drawType, &fDesc);
|
| +
|
| + // let the GP init the batch tracker
|
| + if (drawState.hasGeometryProcessor()) {
|
| + GrGeometryProcessor::InitBT init;
|
| + init.fOutputColor = descInfo.fInputColorIsUsed;
|
| + init.fOutputCoverage = descInfo.fInputCoverageIsUsed;
|
| + init.fColor = this->getColor();
|
| + init.fCoverage = this->getCoverage();
|
| + fGeometryProcessor->initBatchTracker(&fBatchTracker, init);
|
| + }
|
| };
|
|
|
| void GrOptDrawState::setOutputStateInfo(const GrDrawState& ds,
|
|
|