Index: include/gpu/GrProgramResource.h |
diff --git a/include/gpu/GrProgramResource.h b/include/gpu/GrProgramResource.h |
index 277ae9dc620c6175a05d294a561091248deed5fa..61e71ded19876fa35ceb30786fcf2e1882dc19fd 100644 |
--- a/include/gpu/GrProgramResource.h |
+++ b/include/gpu/GrProgramResource.h |
@@ -59,7 +59,13 @@ private: |
writes to the resource using the program element or draw state. */ |
void removeRef() const; |
- friend class GrDrawState; |
+ /** Called to indicate that the previous pending IO is complete. Useful when the owning object |
+ still has refs, so it is not about to destroy this GrProgramResource, but its previously |
+ pending executions have been complete. |
+ */ |
+ void pendingIOComplete() const; |
+ |
+ friend class GrRODrawState; |
friend class GrProgramElement; |
GrGpuResource* fResource; |