| Index: src/gpu/GrTestBatch.h
|
| diff --git a/src/gpu/GrTestBatch.h b/src/gpu/GrTestBatch.h
|
| index ccc0b94e587bb9e6f6c1da5b402d0166d53ebb9b..716912dc7687f88c35de9e9df2ed18c2708c7ef9 100644
|
| --- a/src/gpu/GrTestBatch.h
|
| +++ b/src/gpu/GrTestBatch.h
|
| @@ -24,7 +24,7 @@
|
|
|
| void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
|
| // When this is called on a batch, there is only one geometry bundle
|
| - if (fHasVertexColor) {
|
| + if (fGeometryProcessor->hasVertexColor()) {
|
| out->setUnknownFourComponents();
|
| } else {
|
| out->setKnownFourComponents(fGeometryProcessor->color());
|
| @@ -67,8 +67,7 @@
|
| }
|
|
|
| protected:
|
| - GrTestBatch(const GrGeometryProcessor* gp, bool hasVertexColor = false)
|
| - : fHasVertexColor(hasVertexColor) {
|
| + GrTestBatch(const GrGeometryProcessor* gp) {
|
| fGeometryProcessor.reset(SkRef(gp));
|
| }
|
|
|
| @@ -90,7 +89,6 @@
|
| bool fCoverageIgnored;
|
| };
|
|
|
| - bool fHasVertexColor;
|
| SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor;
|
| BatchTracker fBatch;
|
| };
|
|
|