Chromium Code Reviews| Index: include/gpu/GrGpuResource.h |
| diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h |
| index 127f64b903027732436e2898c9c832eca9ec2867..8af684d2075d06630c82b1dd0c6445a228b4dc67 100644 |
| --- a/include/gpu/GrGpuResource.h |
| +++ b/include/gpu/GrGpuResource.h |
| @@ -12,6 +12,7 @@ |
| #include "SkTInternalLList.h" |
| class GrResourceCacheEntry; |
| +class GrResourceCache2; |
| class GrGpu; |
| class GrContext; |
| @@ -118,12 +119,13 @@ private: |
| static uint32_t CreateUniqueID(); |
| - // We're in an internal doubly linked list |
| + // We're in an internal doubly linked list owned by GrResourceCache2 |
| SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrGpuResource); |
|
robertphillips
2014/08/15 19:36:17
// This is not ref'ed ? (removing 'a')
bsalomon
2014/08/19 15:16:08
Done.
|
| - GrGpu* fGpu; // not reffed. The GrGpu can be deleted while there |
| - // are still live GrGpuResources. It will call |
| - // release() on all such objects in its destructor. |
| + // This is not a ref'ed but abandon() or release() will be called before the GrGpu object |
| + // is destroyed. Those calls set will this to NULL. |
| + GrGpu* fGpu; |
| + |
| enum Flags { |
| /** |
| * This object wraps a GPU object given to us by the user. |