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

Unified Diff: src/core/SkResourceCache.cpp

Issue 1809733002: detach -> release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 4 years, 9 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 | « src/core/SkResourceCache.h ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkResourceCache.cpp
diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp
index 5e6fe683f68b6bacaca89e06e31dc54d16214366..fa3cb9dbe0bca11e3ab983f6f6a949bcaa2a1d28 100644
--- a/src/core/SkResourceCache.cpp
+++ b/src/core/SkResourceCache.cpp
@@ -279,7 +279,7 @@ void SkResourceCache::remove(Rec* rec) {
size_t used = rec->bytesUsed();
SkASSERT(used <= fTotalBytesUsed);
- this->detach(rec);
+ this->release(rec);
fHash->remove(rec->getKey());
fTotalBytesUsed -= used;
@@ -395,7 +395,7 @@ SkCachedData* SkResourceCache::newCachedData(size_t bytes) {
///////////////////////////////////////////////////////////////////////////////
-void SkResourceCache::detach(Rec* rec) {
+void SkResourceCache::release(Rec* rec) {
Rec* prev = rec->fPrev;
Rec* next = rec->fNext;
@@ -425,7 +425,7 @@ void SkResourceCache::moveToHead(Rec* rec) {
this->validate();
- this->detach(rec);
+ this->release(rec);
fHead->fPrev = rec;
rec->fNext = fHead;
« no previous file with comments | « src/core/SkResourceCache.h ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698