Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/gpu/GrProgramResource.h

Issue 543833002: Add method to GrProgramResource to record that pending a execution was completed. (Closed) Base URL: https://skia.googlesource.com/skia.git@progelem
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrProgramElement.h ('k') | src/gpu/GrProgramElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « include/gpu/GrProgramElement.h ('k') | src/gpu/GrProgramElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698