Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 71fb8d3bfd6d9b1e74868ecd58a5414333b5152b..8003a0668f8c5f71e923b9468e895203f751134e 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -1863,10 +1863,10 @@ bool SampleWindow::onHandleChar(SkUnichar uni) { |
{ |
GrContext* grContext = this->getGrContext(); |
if (grContext) { |
- size_t cacheBytes = grContext->getGpuTextureCacheBytes(); |
+ size_t cacheBytes; |
+ grContext->getResourceCacheUsage(NULL, &cacheBytes); |
grContext->freeGpuResources(); |
- SkDebugf("Purged %d bytes from the GPU resource cache.\n", |
- cacheBytes); |
+ SkDebugf("Purged %d bytes from the GPU resource cache.\n", cacheBytes); |
} |
} |
return true; |