Index: src/gpu/effects/GrTextureStripAtlas.cpp |
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp |
index 134c99f4527e36327e14ad9e4cbd7d9b7020111a..230558684409a0afdc65b8939c18ddee9920c40d 100644 |
--- a/src/gpu/effects/GrTextureStripAtlas.cpp |
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp |
@@ -196,15 +196,15 @@ void GrTextureStripAtlas::lockTexture() { |
texDesc.fHeight = fDesc.fHeight; |
texDesc.fConfig = fDesc.fConfig; |
- static const GrCacheID::Domain gTextureStripAtlasDomain = GrCacheID::GenerateDomain(); |
- GrCacheID::Key key; |
- *key.fData32 = fCacheKey; |
- memset(key.fData32 + 1, 0, sizeof(key) - sizeof(uint32_t)); |
- GrCacheID cacheID(gTextureStripAtlasDomain, key); |
+ static const GrContentKey::Domain kDomain = GrContentKey::GenerateDomain(); |
+ GrContentKey key; |
+ GrContentKey::Builder builder(&key, kDomain, 1); |
+ builder[0] = static_cast<uint32_t>(fCacheKey); |
+ builder.finish(); |
- fTexture = fDesc.fContext->findAndRefTexture(texDesc, cacheID, ¶ms); |
+ fTexture = fDesc.fContext->findAndRefTexture(texDesc, key, ¶ms); |
if (NULL == fTexture) { |
- fTexture = fDesc.fContext->createTexture(¶ms, texDesc, cacheID, NULL, 0); |
+ fTexture = fDesc.fContext->createTexture(¶ms, texDesc, key, NULL, 0); |
// This is a new texture, so all of our cache info is now invalid |
this->initLRU(); |
fKeyTable.rewind(); |