diff options
author | 2012-08-13 17:47:59 +0000 | |
---|---|---|
committer | 2012-08-13 17:47:59 +0000 | |
commit | 9c2ea846351a29208cb4a36301ee611e7fb384ea (patch) | |
tree | cf61ae05b74705a6ae7d579e50410dd026ec780a /src/gpu/SkGpuDevice.cpp | |
parent | 62e41903a70e0bebf875cd0fa5c94f804fad582a (diff) |
Split cache-specific fields out of GrTextureDesc
http://codereview.appspot.com/6448143/
git-svn-id: http://skia.googlecode.com/svn/trunk@5065 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 2d6d3a2e0f..496c096de5 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1907,9 +1907,10 @@ bool SkGpuDevice::isBitmapInTextureCache(const SkBitmap& bitmap, desc.fWidth = bitmap.width(); desc.fHeight = bitmap.height(); desc.fConfig = SkBitmapConfig2GrPixelConfig(bitmap.config()); - desc.fClientCacheID = key; - return this->context()->isTextureInCache(desc, ¶ms); + GrCacheData cacheData(key); + + return this->context()->isTextureInCache(desc, cacheData, ¶ms); } |