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

Unified Diff: include/gpu/GrGpuResource.h

Issue 932863004: Use an array of nonpurgeable resources in GrResourceCache (Closed) Base URL: https://skia.googlesource.com/skia.git@queue
Patch Set: skdebugf- Created 5 years, 10 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 | « no previous file | src/gpu/GrResourceCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 7774f734f8373661279e47419073ec0552bdd2c6..aefae27dd5895a36e390fc71bd16a1f33fe33d47 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -12,7 +12,6 @@
#include "GrTypesPriv.h"
#include "SkData.h"
#include "SkInstCnt.h"
-#include "SkTInternalLList.h"
class GrContext;
class GrGpu;
@@ -283,11 +282,8 @@ private:
static uint32_t CreateUniqueID();
- // We're in an internal doubly linked list owned by GrResourceCache. TODO: Replace this with an
- // array of unpurgeable resources in the cache.
- SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrGpuResource);
-
- // An index into a heap when this resource is purgeable. This is maintained by the cache.
+ // An index into a heap when this resource is purgeable or an array when not. This is maintained
+ // by the cache.
int fCacheArrayIndex;
// This value reflects how recently this resource was accessed in the cache. This is maintained
// by the cache.
« no previous file with comments | « no previous file | src/gpu/GrResourceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698