| Index: include/gpu/GrCacheable.h
|
| diff --git a/include/gpu/GrCacheable.h b/include/gpu/GrCacheable.h
|
| index 75dec16033f9b2b6dcf86938c54346ce4e7d51df..39c62b1b66c730ba130303c7bafb2b9733af7ce6 100644
|
| --- a/include/gpu/GrCacheable.h
|
| +++ b/include/gpu/GrCacheable.h
|
| @@ -46,6 +46,14 @@ protected:
|
|
|
| bool isInCache() const { return NULL != fCacheEntry; }
|
|
|
| + /**
|
| + * This entry point should be called whenever gpuMemorySize() begins
|
| + * reporting a different size. If the object is in the cache, it will call
|
| + * gpuMemorySize() immediately and pass the new size on to the resource
|
| + * cache.
|
| + */
|
| + void didChangeGpuMemorySize() const;
|
| +
|
| private:
|
| GrResourceCacheEntry* fCacheEntry; // NULL if not in cache
|
|
|
|
|