Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 7083cf374b5c99ae2a7785a42dff38096bd66c83..a73d11703db0ddd1686916fd8634b340e12661cf 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -16,6 +16,7 @@ DECLARE_SKMESSAGEBUS_MESSAGE(GrResourceInvalidatedMessage); |
/////////////////////////////////////////////////////////////////////////////// |
void GrGpuResource::didChangeGpuMemorySize() const { |
+ fGpuMemorySize = kInvalidGpuMemorySize; |
if (this->cacheAccess().isInCache()) { |
fCacheEntry->didChangeResourceSize(); |
} |