| commit | 95c2003740c4cd01fd1b02ed93b9de7227b1d0f5 | [log] [tgz] |
|---|---|---|
| author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 09 14:29:32 2014 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 09 14:29:32 2014 +0000 |
| tree | 2d7b57d758cdd573433e236c0797d3614f92d40c | |
| parent | 063e6b40a367ba2cb30120e574f1b9f323be3a6e [diff] [blame] |
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
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index d43552e..f90b906 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp
@@ -1080,7 +1080,7 @@ // a texture size_t bmpSize = bitmap.getSize(); size_t cacheSize; - fContext->getTextureCacheLimits(NULL, &cacheSize); + fContext->getResourceCacheLimits(NULL, &cacheSize); if (bmpSize < cacheSize / 2) { return false; }