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

Unified Diff: include/gpu/GrProgramElement.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/GrGpuResource.h ('k') | include/gpu/GrProgramResource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrProgramElement.h
diff --git a/include/gpu/GrProgramElement.h b/include/gpu/GrProgramElement.h
index 67135a3ddb860f7b21894d89c5e47a00a97460ed..6fdc98daa9be963db13a24872a60dbfa85219f98 100644
--- a/include/gpu/GrProgramElement.h
+++ b/include/gpu/GrProgramElement.h
@@ -71,13 +71,7 @@ protected:
private:
void convertRefToPendingExecution() const;
- void completedExecution() const {
- this->validate();
- --fPendingExecutions;
- if (0 == fRefCnt && 0 == fPendingExecutions) {
- SkDELETE(this);
- }
- }
+ void completedExecution() const;
mutable int32_t fRefCnt;
// Count of deferred executions not yet issued to the 3D API.
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | include/gpu/GrProgramResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698