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

Side by Side Diff: src/core/SkResourceCache.h

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 unified diff | Download patch
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/core/SkResourceCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkResourceCache_DEFINED 8 #ifndef SkResourceCache_DEFINED
9 #define SkResourceCache_DEFINED 9 #define SkResourceCache_DEFINED
10 10
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 int fCount; 269 int fCount;
270 270
271 SkMessageBus<PurgeSharedIDMessage>::Inbox fPurgeSharedIDInbox; 271 SkMessageBus<PurgeSharedIDMessage>::Inbox fPurgeSharedIDInbox;
272 272
273 void checkMessages(); 273 void checkMessages();
274 void purgeAsNeeded(bool forcePurge = false); 274 void purgeAsNeeded(bool forcePurge = false);
275 275
276 // linklist management 276 // linklist management
277 void moveToHead(Rec*); 277 void moveToHead(Rec*);
278 void addToHead(Rec*); 278 void addToHead(Rec*);
279 void detach(Rec*); 279 void release(Rec*);
280 void remove(Rec*); 280 void remove(Rec*);
281 281
282 void init(); // called by constructors 282 void init(); // called by constructors
283 283
284 #ifdef SK_DEBUG 284 #ifdef SK_DEBUG
285 void validate() const; 285 void validate() const;
286 #else 286 #else
287 void validate() const {} 287 void validate() const {}
288 #endif 288 #endif
289 }; 289 };
290 #endif 290 #endif
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/core/SkResourceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698