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

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: save the cpp file this time 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
« no previous file with comments | « 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 5452184793eab9c01f98f3ed1cf907d1b7203897..8473dd8d4273bfb7418c209d26bf210ac425bef9 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());
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698