| Index: src/gpu/GrTestBatch.h
|
| diff --git a/src/gpu/GrTestBatch.h b/src/gpu/GrTestBatch.h
|
| index aa0c63773e920b4f935aee1b9f224a83065dca4d..a165f4ab4e321789c416019a5d05c756f6406c87 100644
|
| --- a/src/gpu/GrTestBatch.h
|
| +++ b/src/gpu/GrTestBatch.h
|
| @@ -50,6 +50,16 @@
|
| void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override {
|
| batchTarget->initDraw(fGeometryProcessor, pipeline);
|
|
|
| + // TODO this is hacky, but the only way we have to initialize the GP is to use the
|
| + // GrPipelineInfo struct so we can generate the correct shader. Once we have GrBatch
|
| + // everywhere we can remove this nastiness
|
| + GrPipelineInfo init;
|
| + init.fColorIgnored = fBatch.fColorIgnored;
|
| + init.fOverrideColor = GrColor_ILLEGAL;
|
| + init.fCoverageIgnored = fBatch.fCoverageIgnored;
|
| + init.fUsesLocalCoords = fBatch.fUsesLocalCoords;
|
| + fGeometryProcessor->initBatchTracker(batchTarget->currentBatchTracker(), init);
|
| +
|
| this->onGenerateGeometry(batchTarget, pipeline);
|
| }
|
|
|
|
|