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

Unified Diff: src/gpu/GrGpuResource.cpp

Issue 638003003: Remove ~GrIORef since last remaining virtual and now all inline (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« include/gpu/GrGpuResource.h ('K') | « include/gpu/GrGpuResource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpuResource.cpp
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
index a074d7c29e0bbffd09dac65b75b6957cbf9e66e9..fdb5d479808816b77cbb4923888fd7e66282bc1f 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -11,16 +11,6 @@
#include "GrResourceCache2.h"
#include "GrGpu.h"
-template<typename D> GrIORef<D>::~GrIORef() {
- SkASSERT(0 == fRefCnt);
- SkASSERT(0 == fPendingReads);
- SkASSERT(0 == fPendingWrites);
- // Set to invalid values.
- SkDEBUGCODE(fRefCnt = fPendingReads = fPendingWrites = -10;)
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
static inline GrResourceCache2* get_resource_cache2(GrGpu* gpu) {
SkASSERT(gpu);
SkASSERT(gpu->getContext());
« include/gpu/GrGpuResource.h ('K') | « include/gpu/GrGpuResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698