aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-17 15:09:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-17 15:09:34 -0800
commitf320e04c50a1c8a861bc1d8f50bf732044ff9843 (patch)
tree30ffbaae66557afaaffbeb72ed506254ad3d99eb /include/gpu/GrGpuResource.h
parent91d1d621de03faa41528ba2581d172f3a41104ff (diff)
Use an array of nonpurgeable resources in GrResourceCache
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r--include/gpu/GrGpuResource.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 7774f734f8..aefae27dd5 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.