| Index: src/gpu/GrBatch.h
|
| diff --git a/src/gpu/GrBatch.h b/src/gpu/GrBatch.h
|
| index 51c556e737a0b6a9a15f23f2db233b86a19e2138..a8dac38f71e409a8da5bd03ec63de9091007da55 100644
|
| --- a/src/gpu/GrBatch.h
|
| +++ b/src/gpu/GrBatch.h
|
| @@ -94,7 +94,10 @@ public:
|
| SkDEBUGCODE(bool isUsed() const { return fUsed; })
|
|
|
| const GrPipeline* pipeline() const { return fPipeline; }
|
| - void setPipeline(const GrPipeline* pipeline) { fPipeline.reset(SkRef(pipeline)); }
|
| + void setPipeline(const GrPipeline* pipeline) {
|
| + fPipeline.reset(SkRef(pipeline));
|
| + this->onSetPipeline();
|
| + }
|
|
|
| protected:
|
| template <typename PROC_SUBCLASS> void initClassID() {
|
| @@ -164,6 +167,8 @@ private:
|
| return id;
|
| }
|
|
|
| + virtual void onSetPipeline() {}
|
| +
|
| enum {
|
| kIllegalBatchClassID = 0,
|
| };
|
|
|