Fix for r4201 performance regression (http://code.google.com/p/skia/issues/detail...
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Jun 2012 14:21:26 +0000 (14:21 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Jun 2012 14:21:26 +0000 (14:21 +0000)
http://codereview.appspot.com/6299060/

git-svn-id: http://skia.googlecode.com/svn/trunk@4212 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/SkGpuDevice.cpp

index b62e5be..d04a5a1 100644 (file)
@@ -1831,6 +1831,7 @@ SkGpuDevice::TexCache SkGpuDevice::lockCachedTexture(
         desc.fWidth = bitmap.width();
         desc.fHeight = bitmap.height();
         desc.fConfig = SkGr::BitmapConfig2PixelConfig(bitmap.config());
+        desc.fClientCacheID = key;
 
         entry = ctx->findAndLockTexture(desc, sampler);
         if (NULL == entry.texture()) {