Chromium Code Reviews| Index: src/gpu/GrTestBatch.h |
| diff --git a/src/gpu/GrTestBatch.h b/src/gpu/GrTestBatch.h |
| index 41839eee86e9269c329221019b4d0ad14d2319e5..a165f4ab4e321789c416019a5d05c756f6406c87 100644 |
| --- a/src/gpu/GrTestBatch.h |
| +++ b/src/gpu/GrTestBatch.h |
| @@ -25,7 +25,7 @@ public: |
| void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
| // When this is called on a batch, there is only one geometry bundle |
|
robertphillips
2015/05/13 20:33:50
Use a getColor accessor ?
|
| - out->setKnownFourComponents(fGeometryProcessor->color()); |
| + out->setKnownFourComponents(this->geoData(0)->fColor); |
| } |
| void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { |
| @@ -74,6 +74,7 @@ protected: |
| private: |
| virtual Geometry* geoData(int index) = 0; |
| + virtual const Geometry* geoData(int index) const = 0; |
| bool onCombineIfPossible(GrBatch* t) override { |
| return false; |