| Index: src/gpu/GrProgramElement.cpp
|
| diff --git a/src/gpu/GrProgramElement.cpp b/src/gpu/GrProgramElement.cpp
|
| index 2c3085f7e4bbfc39df39e30b1b6e67af5f988650..89d53e28db147d98289170b929570167314bb984 100644
|
| --- a/src/gpu/GrProgramElement.cpp
|
| +++ b/src/gpu/GrProgramElement.cpp
|
| @@ -31,9 +31,7 @@ void GrProgramElement::convertRefToPendingExecution() const {
|
| ++fPendingExecutions;
|
| this->unref();
|
| if (0 == fRefCnt) {
|
| - for (int i = 0; i < fGpuResources.count(); ++i) {
|
| - fGpuResources[i]->removeRef();
|
| - }
|
| + this->removeRefs();
|
| }
|
| }
|
|
|
| @@ -53,3 +51,9 @@ void GrProgramElement::completedExecution() const {
|
| }
|
| }
|
| }
|
| +
|
| +void GrProgramElement::removeRefs() const {
|
| + for (int i = 0; i < fGpuResources.count(); ++i) {
|
| + fGpuResources[i]->removeRef();
|
| + }
|
| +}
|
|
|