Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / gpu / GrProgramElement.cpp
index 2c3085f..89d53e2 100644 (file)
@@ -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();
+    }
+}