diff options
author | 2014-05-09 14:29:32 +0000 | |
---|---|---|
committer | 2014-05-09 14:29:32 +0000 | |
commit | 95c2003740c4cd01fd1b02ed93b9de7227b1d0f5 (patch) | |
tree | 2d7b57d758cdd573433e236c0797d3614f92d40c /samplecode | |
parent | 063e6b40a367ba2cb30120e574f1b9f323be3a6e (diff) |
cleanup GrContext resource cache api
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/275563005
git-svn-id: http://skia.googlecode.com/svn/trunk@14669 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 71fb8d3bfd..8003a0668f 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; |