aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 19:48:32 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 19:48:32 +0000
commit8f7e1dac5c92bf1f53feb603a9bd249d53afa81a (patch)
treeb01ea4bb5fbc91efdda37adf5635096f2bd55072 /src/gpu/SkGpuDevice.cpp
parentc778cda14c69d739748839baa053cc0dadad64b6 (diff)
Remove count budget from resource cache
Review URL: http://codereview.appspot.com/6312052/ git-svn-id: http://skia.googlecode.com/svn/trunk@4287 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 77a08eccb9..628adc4c96 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1152,8 +1152,7 @@ bool SkGpuDevice::shouldTileBitmap(const SkBitmap& bitmap,
// assumption here is that sw bitmap size is a good proxy for its size as
// a texture
size_t bmpSize = bitmap.getSize();
- size_t cacheSize;
- fContext->getTextureCacheLimits(NULL, &cacheSize);
+ size_t cacheSize = fContext->getTextureCacheBudget();
if (bmpSize < cacheSize / 2) {
return false;
}