| Index: src/gpu/GrBatch.h
|
| diff --git a/src/gpu/GrBatch.h b/src/gpu/GrBatch.h
|
| index ceb2c5cc2a9da1d9ff65cc3cea1bb51fee763a4d..fc2f3a104a70fa9c95dfc52fd6b1967cd2edb4b6 100644
|
| --- a/src/gpu/GrBatch.h
|
| +++ b/src/gpu/GrBatch.h
|
| @@ -46,7 +46,7 @@ struct GrBatchOpt {
|
| class GrBatch : public SkRefCnt {
|
| public:
|
| SK_DECLARE_INST_COUNT(GrBatch)
|
| - GrBatch() { SkDEBUGCODE(fUsed = false;) }
|
| + GrBatch() : fBatchesGenerated(0) { SkDEBUGCODE(fUsed = false;) }
|
| virtual ~GrBatch() {}
|
|
|
| virtual const char* name() const = 0;
|
| @@ -75,6 +75,9 @@ public:
|
|
|
| virtual void generateGeometry(GrBatchTarget*, const GrPipeline*) = 0;
|
|
|
| + // TODO this goes away when batches are everywhere
|
| + int batchesGenerated() const { return fBatchesGenerated; }
|
| +
|
| void* operator new(size_t size);
|
| void operator delete(void* target);
|
|
|
| @@ -105,6 +108,7 @@ protected:
|
| }
|
|
|
| uint32_t fClassID;
|
| + int fBatchesGenerated;
|
|
|
| private:
|
| static uint32_t GenClassID() {
|
|
|